From 80c09ffbc4405ca2eb8c2b409b74d8b9bf0414c9 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 7 Oct 2024 17:11:51 +0200 Subject: [PATCH 01/11] change queries for pagination support in janus' order table --- backend/apps/ecommerce/resolvers.py | 11 +- backend/apps/ecommerce/schema.py | 2 +- backend/schema.json | 20 - .../components/pages/organization/OrgShop.tsx | 14 +- .../src/components/pages/orgs/ShopSale.tsx | 2 +- frontend/src/generated/graphql.tsx | 10392 ++-------------- .../src/graphql/ecommerce/queries.graphql | 4 +- frontend/src/pages/orgs/[orgId]/index.tsx | 2 +- 8 files changed, 1100 insertions(+), 9347 deletions(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index a88c2ae0c..75b1ced11 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -38,9 +38,14 @@ def resolve_user_orders(self, info): def resolve_all_user_orders(self, info): return Order.objects.all() - @staff_member_required - def resolve_all_shop_orders(self, info): - return Order.objects.filter(product__shop_item=True) + def resolve_all_shop_orders(self, limit, offset, info): + # Apply pagination if limit and offset are provided + orders = Order.objects.filter(product__shop_item=True) + if offset is not None: + orders = orders[offset:] + if limit is not None: + orders = orders[:limit] + return orders @staff_member_required def resolve_orders_by_status(self, info: "ResolveInfo", product_id, status): diff --git a/backend/apps/ecommerce/schema.py b/backend/apps/ecommerce/schema.py index 128889b00..209cc8de7 100644 --- a/backend/apps/ecommerce/schema.py +++ b/backend/apps/ecommerce/schema.py @@ -19,7 +19,7 @@ class EcommerceQueries(graphene.ObjectType, EcommerceResolvers): order = graphene.Field(OrderType, order_id=graphene.ID(required=True)) user_orders = graphene.List(NonNull(OrderType)) all_user_orders = graphene.List(NonNull(OrderType)) - all_shop_orders = graphene.List(NonNull(OrderType)) + all_shop_orders = graphene.List(graphene.NonNull(OrderType), limit=graphene.Int(), offset=graphene.Int()), orders_by_status = graphene.Field( OrdersByStatusType, product_id=graphene.ID(required=True), status=graphene.String(required=True) diff --git a/backend/schema.json b/backend/schema.json index 8ec891e3d..155908987 100644 --- a/backend/schema.json +++ b/backend/schema.json @@ -300,26 +300,6 @@ } } }, - { - "args": [], - "deprecationReason": null, - "description": null, - "isDeprecated": false, - "name": "allShopOrders", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OrderType", - "ofType": null - } - } - } - }, { "args": [ { diff --git a/frontend/src/components/pages/organization/OrgShop.tsx b/frontend/src/components/pages/organization/OrgShop.tsx index bc624ec7b..d6195c861 100644 --- a/frontend/src/components/pages/organization/OrgShop.tsx +++ b/frontend/src/components/pages/organization/OrgShop.tsx @@ -9,11 +9,21 @@ type Props = { organization: AdminOrganizationFragment; }; export const OrgProducts: React.FC = ({ organization }) => { - const { data, error } = useQuery(AllShopOrdersDocument); + + const limit = 5 + const page = 1//[page, setPage] = useState(0); + + + const { data, error } = useQuery(AllShopOrdersDocument, { + variables: { + limit: limit, // The number of orders you want to fetch + offset: page * limit, // The starting index (e.g., 0 for the first set of results) + }, + }); if (error) return

Error

; console.log(data); - if (organization.name !== "Janus linjeforening") { + if (organization.name.toLowerCase() !== "janus linjeforening") { return (

Per nå har kun Janus tilgang på buttikk administrasjon. Etter hvert vil vi åpne for at flere kan bruke siden diff --git a/frontend/src/components/pages/orgs/ShopSale.tsx b/frontend/src/components/pages/orgs/ShopSale.tsx index 0f4054f92..401b4cb54 100644 --- a/frontend/src/components/pages/orgs/ShopSale.tsx +++ b/frontend/src/components/pages/orgs/ShopSale.tsx @@ -23,7 +23,7 @@ export const ShopSale: React.FC = ({ name, product_name, quantity, has_pa deliverProduct({ variables: { orderId: order_id } }); } return ( - + {name} diff --git a/frontend/src/generated/graphql.tsx b/frontend/src/generated/graphql.tsx index 09d3a0a86..cd07b3415 100644 --- a/frontend/src/generated/graphql.tsx +++ b/frontend/src/generated/graphql.tsx @@ -1,45 +1,45 @@ -import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; - Date: { input: string; output: string }; - DateTime: { input: string; output: string }; - Decimal: { input: number; output: number }; - UUID: { input: string; output: string }; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + Date: { input: string; output: string; } + DateTime: { input: string; output: string; } + Decimal: { input: number; output: number; } + UUID: { input: string; output: string; } }; /** Booking type for admin users */ export type AdminBookingType = { - __typename?: "AdminBookingType"; + __typename?: 'AdminBookingType'; cabins: Array; - checkIn: Scalars["Date"]["output"]; - checkOut: Scalars["Date"]["output"]; - declineReason: Scalars["String"]["output"]; - externalParticipants: Scalars["Int"]["output"]; - extraInfo: Scalars["String"]["output"]; - firstName: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - internalParticipants: Scalars["Int"]["output"]; - isDeclined: Scalars["Boolean"]["output"]; - isInternalPrice?: Maybe; - isTentative: Scalars["Boolean"]["output"]; - lastName: Scalars["String"]["output"]; - numberOfNights?: Maybe; - phone: Scalars["String"]["output"]; - price?: Maybe; - receiverEmail: Scalars["String"]["output"]; - timestamp: Scalars["DateTime"]["output"]; + checkIn: Scalars['Date']['output']; + checkOut: Scalars['Date']['output']; + declineReason: Scalars['String']['output']; + externalParticipants: Scalars['Int']['output']; + extraInfo: Scalars['String']['output']; + firstName: Scalars['String']['output']; + id: Scalars['ID']['output']; + internalParticipants: Scalars['Int']['output']; + isDeclined: Scalars['Boolean']['output']; + isInternalPrice?: Maybe; + isTentative: Scalars['Boolean']['output']; + lastName: Scalars['String']['output']; + numberOfNights?: Maybe; + phone: Scalars['String']['output']; + price?: Maybe; + receiverEmail: Scalars['String']['output']; + timestamp: Scalars['DateTime']['output']; }; /** @@ -49,398 +49,398 @@ export type AdminBookingType = { * when a user signs off an event */ export type AdminEventSignOff = { - __typename?: "AdminEventSignOff"; + __typename?: 'AdminEventSignOff'; event?: Maybe; }; /** Booking type for fields available for not logged in users */ export type AllBookingsType = { - __typename?: "AllBookingsType"; + __typename?: 'AllBookingsType'; cabins: Array; - checkIn: Scalars["Date"]["output"]; - checkOut: Scalars["Date"]["output"]; - id: Scalars["ID"]["output"]; + checkIn: Scalars['Date']['output']; + checkOut: Scalars['Date']['output']; + id: Scalars['ID']['output']; }; export type AnswerInput = { - answer: Scalars["String"]["input"]; - questionId: Scalars["ID"]["input"]; + answer: Scalars['String']['input']; + questionId: Scalars['ID']['input']; }; /** A user's answer to a question. */ export type AnswerType = { - __typename?: "AnswerType"; - answer: Scalars["String"]["output"]; - id?: Maybe; + __typename?: 'AnswerType'; + answer: Scalars['String']['output']; + id?: Maybe; question: QuestionType; - uuid: Scalars["UUID"]["output"]; + uuid: Scalars['UUID']['output']; }; export type ArchiveDocumentType = { - __typename?: "ArchiveDocumentType"; - featured: Scalars["Boolean"]["output"]; - fileLocation: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - thumbnail?: Maybe; - title: Scalars["String"]["output"]; + __typename?: 'ArchiveDocumentType'; + featured: Scalars['Boolean']['output']; + fileLocation: Scalars['String']['output']; + id: Scalars['ID']['output']; + thumbnail?: Maybe; + title: Scalars['String']['output']; typeDoc: ArchiveDocumentTypeDoc; - webLink?: Maybe; - year?: Maybe; + webLink?: Maybe; + year?: Maybe; }; /** An enumeration. */ export enum ArchiveDocumentTypeDoc { /** Annet */ - Annet = "ANNET", + Annet = 'ANNET', /** Årbøker */ - Arboker = "ARBOKER", + Arboker = 'ARBOKER', /** Budsjett og Regnskap */ - BudsjettOgRegnskap = "BUDSJETT_OG_REGNSKAP", + BudsjettOgRegnskap = 'BUDSJETT_OG_REGNSKAP', /** Foreningens lover */ - ForeningensLover = "FORENINGENS_LOVER", + ForeningensLover = 'FORENINGENS_LOVER', /** Generalforsamling */ - Generalforsamling = "GENERALFORSAMLING", + Generalforsamling = 'GENERALFORSAMLING', /** Januscript */ - Januscript = "JANUSCRIPT", + Januscript = 'JANUSCRIPT', /** Støtte fra HS */ - StotteFraHs = "STOTTE_FRA_HS", + StotteFraHs = 'STOTTE_FRA_HS', /** Utveksling */ - Utveksling = "UTVEKSLING", + Utveksling = 'UTVEKSLING' } export type AssignMembership = { - __typename?: "AssignMembership"; + __typename?: 'AssignMembership'; membership?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type AttemptCapturePayment = { - __typename?: "AttemptCapturePayment"; + __typename?: 'AttemptCapturePayment'; order?: Maybe; status?: Maybe; }; export type AuthUser = { - __typename?: "AuthUser"; + __typename?: 'AuthUser'; user: UserType; }; export type BaseFormInput = { - description?: InputMaybe; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + organizationId?: InputMaybe; }; export type BaseListingInput = { - application?: InputMaybe; - applicationUrl?: InputMaybe; - case?: InputMaybe; - deadline?: InputMaybe; - description?: InputMaybe; - endDatetime?: InputMaybe; - formId?: InputMaybe; - interview?: InputMaybe; - readMoreUrl?: InputMaybe; - startDatetime?: InputMaybe; - title?: InputMaybe; + application?: InputMaybe; + applicationUrl?: InputMaybe; + case?: InputMaybe; + deadline?: InputMaybe; + description?: InputMaybe; + endDatetime?: InputMaybe; + formId?: InputMaybe; + interview?: InputMaybe; + readMoreUrl?: InputMaybe; + startDatetime?: InputMaybe; + title?: InputMaybe; }; export type BaseQuestionInput = { - description?: InputMaybe; - mandatory?: InputMaybe; - question?: InputMaybe; + description?: InputMaybe; + mandatory?: InputMaybe; + question?: InputMaybe; questionType?: InputMaybe; }; export type BlogPostType = { - __typename?: "BlogPostType"; + __typename?: 'BlogPostType'; author?: Maybe; blog?: Maybe; - id: Scalars["ID"]["output"]; - publishDate: Scalars["DateTime"]["output"]; - text: Scalars["String"]["output"]; - title: Scalars["String"]["output"]; + id: Scalars['ID']['output']; + publishDate: Scalars['DateTime']['output']; + text: Scalars['String']['output']; + title: Scalars['String']['output']; }; export type BlogType = { - __typename?: "BlogType"; + __typename?: 'BlogType'; blogPosts: Array; - description: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - name: Scalars["String"]["output"]; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; organization?: Maybe; }; /** Basic booking object type used as a base for other types and as a standalone */ export type BookingInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - internalParticipants?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + internalParticipants?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; export type BookingResponsibleType = { - __typename?: "BookingResponsibleType"; - active?: Maybe; - email?: Maybe; - firstName?: Maybe; - id: Scalars["ID"]["output"]; - lastName?: Maybe; - phone?: Maybe; + __typename?: 'BookingResponsibleType'; + active?: Maybe; + email?: Maybe; + firstName?: Maybe; + id: Scalars['ID']['output']; + lastName?: Maybe; + phone?: Maybe; }; export type CabinType = { - __typename?: "CabinType"; - externalPrice: Scalars["Int"]["output"]; - externalPriceWeekend: Scalars["Int"]["output"]; - id: Scalars["ID"]["output"]; - internalPrice: Scalars["Int"]["output"]; - internalPriceWeekend: Scalars["Int"]["output"]; - maxGuests: Scalars["Int"]["output"]; - name: Scalars["String"]["output"]; + __typename?: 'CabinType'; + externalPrice: Scalars['Int']['output']; + externalPriceWeekend: Scalars['Int']['output']; + id: Scalars['ID']['output']; + internalPrice: Scalars['Int']['output']; + internalPriceWeekend: Scalars['Int']['output']; + maxGuests: Scalars['Int']['output']; + name: Scalars['String']['output']; }; export type CategoryInput = { - name?: InputMaybe; + name?: InputMaybe; }; export type CategoryType = { - __typename?: "CategoryType"; - id: Scalars["ID"]["output"]; - name: Scalars["String"]["output"]; + __typename?: 'CategoryType'; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; }; export type CreateArchiveDocument = { - __typename?: "CreateArchiveDocument"; + __typename?: 'CreateArchiveDocument'; arhiveDocument?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateBlog = { - __typename?: "CreateBlog"; + __typename?: 'CreateBlog'; blog?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateBlogPost = { - __typename?: "CreateBlogPost"; + __typename?: 'CreateBlogPost'; blogPost?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Add a new booking to the database */ export type CreateBooking = { - __typename?: "CreateBooking"; + __typename?: 'CreateBooking'; booking?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Create a new event category */ export type CreateCategory = { - __typename?: "CreateCategory"; + __typename?: 'CreateCategory'; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Create a new event */ export type CreateEvent = { - __typename?: "CreateEvent"; + __typename?: 'CreateEvent'; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateEventInput = { - allowedGradeYears?: InputMaybe>; - availableSlots?: InputMaybe; - bindingSignup?: InputMaybe; - categoryId?: InputMaybe; - contactEmail?: InputMaybe; - deadline?: InputMaybe; - description: Scalars["String"]["input"]; - endTime?: InputMaybe; - hasExtraInformation?: InputMaybe; - image?: InputMaybe; - isAttendable: Scalars["Boolean"]["input"]; - location?: InputMaybe; - organizationId: Scalars["ID"]["input"]; - price?: InputMaybe; - shortDescription?: InputMaybe; - signupOpenDate?: InputMaybe; - startTime: Scalars["DateTime"]["input"]; - title: Scalars["String"]["input"]; + allowedGradeYears?: InputMaybe>; + availableSlots?: InputMaybe; + bindingSignup?: InputMaybe; + categoryId?: InputMaybe; + contactEmail?: InputMaybe; + deadline?: InputMaybe; + description: Scalars['String']['input']; + endTime?: InputMaybe; + hasExtraInformation?: InputMaybe; + image?: InputMaybe; + isAttendable: Scalars['Boolean']['input']; + location?: InputMaybe; + organizationId: Scalars['ID']['input']; + price?: InputMaybe; + shortDescription?: InputMaybe; + signupOpenDate?: InputMaybe; + startTime: Scalars['DateTime']['input']; + title: Scalars['String']['input']; }; export type CreateForm = { - __typename?: "CreateForm"; + __typename?: 'CreateForm'; form?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateFormInput = { - description?: InputMaybe; - name: Scalars["String"]["input"]; - organizationId: Scalars["ID"]["input"]; + description?: InputMaybe; + name: Scalars['String']['input']; + organizationId: Scalars['ID']['input']; }; /** Creates a new listing */ export type CreateListing = { - __typename?: "CreateListing"; + __typename?: 'CreateListing'; listing?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateListingInput = { - application?: InputMaybe; - applicationUrl?: InputMaybe; - case?: InputMaybe; - deadline: Scalars["DateTime"]["input"]; - description?: InputMaybe; - endDatetime?: InputMaybe; - formId?: InputMaybe; - interview?: InputMaybe; - organizationId: Scalars["ID"]["input"]; - readMoreUrl?: InputMaybe; - startDatetime?: InputMaybe; - title: Scalars["String"]["input"]; + application?: InputMaybe; + applicationUrl?: InputMaybe; + case?: InputMaybe; + deadline: Scalars['DateTime']['input']; + description?: InputMaybe; + endDatetime?: InputMaybe; + formId?: InputMaybe; + interview?: InputMaybe; + organizationId: Scalars['ID']['input']; + readMoreUrl?: InputMaybe; + startDatetime?: InputMaybe; + title: Scalars['String']['input']; }; export type CreateOrganization = { - __typename?: "CreateOrganization"; - ok?: Maybe; + __typename?: 'CreateOrganization'; + ok?: Maybe; organization?: Maybe; }; export type CreateProduct = { - __typename?: "CreateProduct"; - ok?: Maybe; + __typename?: 'CreateProduct'; + ok?: Maybe; product?: Maybe; }; export type CreateProductInput = { - description: Scalars["String"]["input"]; - maxBuyableQuantity: Scalars["Int"]["input"]; - name: Scalars["String"]["input"]; - organizationId: Scalars["ID"]["input"]; - price: Scalars["Decimal"]["input"]; - totalQuantity: Scalars["Int"]["input"]; + description: Scalars['String']['input']; + maxBuyableQuantity: Scalars['Int']['input']; + name: Scalars['String']['input']; + organizationId: Scalars['ID']['input']; + price: Scalars['Decimal']['input']; + totalQuantity: Scalars['Int']['input']; }; export type CreateQuestion = { - __typename?: "CreateQuestion"; - ok?: Maybe; + __typename?: 'CreateQuestion'; + ok?: Maybe; question?: Maybe; }; export type CreateQuestionInput = { - description?: InputMaybe; - mandatory?: InputMaybe; - question: Scalars["String"]["input"]; + description?: InputMaybe; + mandatory?: InputMaybe; + question: Scalars['String']['input']; questionType?: InputMaybe; }; export type CreateUpdateAndDeleteOptions = { - __typename?: "CreateUpdateAndDeleteOptions"; - ok?: Maybe; + __typename?: 'CreateUpdateAndDeleteOptions'; + ok?: Maybe; options?: Maybe>; }; export type DeleteAnswer = { - __typename?: "DeleteAnswer"; - deletedUuid?: Maybe; - ok?: Maybe; + __typename?: 'DeleteAnswer'; + deletedUuid?: Maybe; + ok?: Maybe; }; export type DeleteAnswersToForm = { - __typename?: "DeleteAnswersToForm"; - ok?: Maybe; + __typename?: 'DeleteAnswersToForm'; + ok?: Maybe; }; export type DeleteArchiveDocument = { - __typename?: "DeleteArchiveDocument"; + __typename?: 'DeleteArchiveDocument'; archiveDocument?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type DeleteBlog = { - __typename?: "DeleteBlog"; - ok?: Maybe; + __typename?: 'DeleteBlog'; + ok?: Maybe; }; export type DeleteBlogPost = { - __typename?: "DeleteBlogPost"; - ok?: Maybe; + __typename?: 'DeleteBlogPost'; + ok?: Maybe; }; /** Deletes the booking with the given ID */ export type DeleteBooking = { - __typename?: "DeleteBooking"; - bookingId?: Maybe; - ok?: Maybe; + __typename?: 'DeleteBooking'; + bookingId?: Maybe; + ok?: Maybe; }; /** Deletes the category with a given ID */ export type DeleteCategory = { - __typename?: "DeleteCategory"; + __typename?: 'DeleteCategory'; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Deletes the event with the given ID */ export type DeleteEvent = { - __typename?: "DeleteEvent"; + __typename?: 'DeleteEvent'; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type DeleteForm = { - __typename?: "DeleteForm"; - deletedId?: Maybe; - ok?: Maybe; + __typename?: 'DeleteForm'; + deletedId?: Maybe; + ok?: Maybe; }; /** Deletes the listing with the given ID */ export type DeleteListing = { - __typename?: "DeleteListing"; - listingId?: Maybe; - ok?: Maybe; + __typename?: 'DeleteListing'; + listingId?: Maybe; + ok?: Maybe; }; export type DeleteOrganization = { - __typename?: "DeleteOrganization"; - ok?: Maybe; + __typename?: 'DeleteOrganization'; + ok?: Maybe; organization?: Maybe; }; export type DeleteQuestion = { - __typename?: "DeleteQuestion"; - deletedId?: Maybe; - ok?: Maybe; + __typename?: 'DeleteQuestion'; + deletedId?: Maybe; + ok?: Maybe; }; export type DeliveredProduct = { - __typename?: "DeliveredProduct"; - ok?: Maybe; + __typename?: 'DeliveredProduct'; + ok?: Maybe; order?: Maybe; }; export type EmailInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - emailType?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - internalParticipants?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + emailType?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + internalParticipants?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; /** @@ -450,9 +450,9 @@ export type EmailInput = { * when a user signs off an event */ export type EventSignOff = { - __typename?: "EventSignOff"; + __typename?: 'EventSignOff'; event?: Maybe; - isFull?: Maybe; + isFull?: Maybe; }; /** @@ -460,39 +460,39 @@ export type EventSignOff = { * with the given ID */ export type EventSignUp = { - __typename?: "EventSignUp"; + __typename?: 'EventSignUp'; event?: Maybe; - isFull?: Maybe; + isFull?: Maybe; }; export type EventSignUpInput = { - extraInformation?: InputMaybe; + extraInformation?: InputMaybe; }; export type EventType = { - __typename?: "EventType"; - allowedGradeYears?: Maybe>; - availableSlots?: Maybe; - bindingSignup: Scalars["Boolean"]["output"]; + __typename?: 'EventType'; + allowedGradeYears?: Maybe>; + availableSlots?: Maybe; + bindingSignup: Scalars['Boolean']['output']; category?: Maybe; - contactEmail: Scalars["String"]["output"]; - deadline?: Maybe; - description: Scalars["String"]["output"]; - endTime?: Maybe; - hasExtraInformation: Scalars["Boolean"]["output"]; - id: Scalars["ID"]["output"]; - image?: Maybe; - isAttendable: Scalars["Boolean"]["output"]; - isFull?: Maybe; - location?: Maybe; + contactEmail: Scalars['String']['output']; + deadline?: Maybe; + description: Scalars['String']['output']; + endTime?: Maybe; + hasExtraInformation: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + image?: Maybe; + isAttendable: Scalars['Boolean']['output']; + isFull?: Maybe; + location?: Maybe; organization: OrganizationType; - price?: Maybe; + price?: Maybe; product?: Maybe; publisher?: Maybe; - shortDescription?: Maybe; - signupOpenDate?: Maybe; - startTime: Scalars["DateTime"]["output"]; - title: Scalars["String"]["output"]; + shortDescription?: Maybe; + signupOpenDate?: Maybe; + startTime: Scalars['DateTime']['output']; + title: Scalars['String']['output']; userAttendance?: Maybe; usersAttending?: Maybe>; usersOnWaitingList?: Maybe>; @@ -500,10 +500,10 @@ export type EventType = { /** A form containing questions, optionally linked to a listing. */ export type FormType = { - __typename?: "FormType"; - description: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - name: Scalars["String"]["output"]; + __typename?: 'FormType'; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; organization?: Maybe; questions: Array; responder?: Maybe; @@ -512,66 +512,69 @@ export type FormType = { responses?: Maybe>; }; + /** A form containing questions, optionally linked to a listing. */ export type FormTypeResponderArgs = { - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; + /** A form containing questions, optionally linked to a listing. */ export type FormTypeRespondersArgs = { - userId?: InputMaybe; + userId?: InputMaybe; }; + /** A form containing questions, optionally linked to a listing. */ export type FormTypeResponseArgs = { - responsePk?: InputMaybe; + responsePk?: InputMaybe; }; export type InitiateOrder = { - __typename?: "InitiateOrder"; - orderId?: Maybe; - redirect?: Maybe; + __typename?: 'InitiateOrder'; + orderId?: Maybe; + redirect?: Maybe; }; export type ListingType = { - __typename?: "ListingType"; - applicationUrl?: Maybe; - chips: Array; - deadline: Scalars["DateTime"]["output"]; - description: Scalars["String"]["output"]; - endDatetime: Scalars["DateTime"]["output"]; + __typename?: 'ListingType'; + applicationUrl?: Maybe; + chips: Array; + deadline: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + endDatetime: Scalars['DateTime']['output']; form?: Maybe; - heroImageUrl?: Maybe; - id: Scalars["ID"]["output"]; + heroImageUrl?: Maybe; + id: Scalars['ID']['output']; organization: OrganizationType; - readMoreUrl?: Maybe; - slug: Scalars["String"]["output"]; - startDatetime: Scalars["DateTime"]["output"]; - title: Scalars["String"]["output"]; - viewCount: Scalars["Int"]["output"]; + readMoreUrl?: Maybe; + slug: Scalars['String']['output']; + startDatetime: Scalars['DateTime']['output']; + title: Scalars['String']['output']; + viewCount: Scalars['Int']['output']; }; export type Logout = { - __typename?: "Logout"; - idToken?: Maybe; + __typename?: 'Logout'; + idToken?: Maybe; }; export type MembershipInput = { - groupId?: InputMaybe; - organizationId?: InputMaybe; - userId?: InputMaybe; + groupId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; }; export type MembershipType = { - __typename?: "MembershipType"; + __typename?: 'MembershipType'; group?: Maybe; - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; organization: OrganizationType; user: UserType; }; export type Mutations = { - __typename?: "Mutations"; + __typename?: 'Mutations'; /** * Sets the field is_attending to False in the Sign Up for the user with the * given ID, for the event with the given ID @@ -654,307 +657,355 @@ export type Mutations = { updateUser?: Maybe; }; + export type MutationsAdminEventSignOffArgs = { - eventId: Scalars["ID"]["input"]; - userId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; + export type MutationsAssignMembershipArgs = { membershipData: MembershipInput; }; + export type MutationsAttemptCapturePaymentArgs = { - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }; + export type MutationsAuthUserArgs = { - code: Scalars["String"]["input"]; + code: Scalars['String']['input']; }; + export type MutationsCreateArchivedocumentArgs = { - date?: InputMaybe; - fileLocation?: InputMaybe; - title?: InputMaybe; - typeDoc?: InputMaybe; - webLink?: InputMaybe; + date?: InputMaybe; + fileLocation?: InputMaybe; + title?: InputMaybe; + typeDoc?: InputMaybe; + webLink?: InputMaybe; }; + export type MutationsCreateBlogArgs = { - description?: InputMaybe; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + organizationId?: InputMaybe; }; + export type MutationsCreateBlogPostArgs = { - authorId?: InputMaybe; - blogId?: InputMaybe; - text?: InputMaybe; - title?: InputMaybe; + authorId?: InputMaybe; + blogId?: InputMaybe; + text?: InputMaybe; + title?: InputMaybe; }; + export type MutationsCreateBookingArgs = { bookingData?: InputMaybe; }; + export type MutationsCreateCategoryArgs = { categoryData: CategoryInput; }; + export type MutationsCreateEventArgs = { eventData: CreateEventInput; }; + export type MutationsCreateFormArgs = { formData: CreateFormInput; - listingId?: InputMaybe; + listingId?: InputMaybe; }; + export type MutationsCreateListingArgs = { listingData: CreateListingInput; }; + export type MutationsCreateOrganizationArgs = { organizationData: OrganizationInput; }; + export type MutationsCreateProductArgs = { productData: CreateProductInput; }; + export type MutationsCreateQuestionArgs = { - formId?: InputMaybe; + formId?: InputMaybe; questionData: CreateQuestionInput; }; + export type MutationsCreateUpdateAndDeleteOptionsArgs = { optionData?: InputMaybe>; - questionId: Scalars["ID"]["input"]; + questionId: Scalars['ID']['input']; }; + export type MutationsDeleteAnswerArgs = { - uuid: Scalars["ID"]["input"]; + uuid: Scalars['ID']['input']; }; + export type MutationsDeleteAnswersArgs = { - formId?: InputMaybe; + formId?: InputMaybe; }; + export type MutationsDeleteArchivedocumentArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsDeleteBlogArgs = { - blogId?: InputMaybe; + blogId?: InputMaybe; }; + export type MutationsDeleteBlogPostArgs = { - blogPostId?: InputMaybe; + blogPostId?: InputMaybe; }; + export type MutationsDeleteBookingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsDeleteCategoryArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsDeleteEventArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsDeleteFormArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationsDeleteListingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsDeleteOrganizationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationsDeleteQuestionArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationsDeliveredProductArgs = { - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }; + export type MutationsEventSignOffArgs = { - eventId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; }; + export type MutationsEventSignUpArgs = { data?: InputMaybe; - eventId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; }; + export type MutationsInitiateOrderArgs = { - fallbackRedirect?: InputMaybe; - productId: Scalars["ID"]["input"]; - quantity?: InputMaybe; + fallbackRedirect?: InputMaybe; + productId: Scalars['ID']['input']; + quantity?: InputMaybe; }; + export type MutationsSendEmailArgs = { emailInput?: InputMaybe; }; + export type MutationsSendEventMailsArgs = { - content?: InputMaybe; - eventId: Scalars["ID"]["input"]; - receiverEmails?: InputMaybe>; - subject: Scalars["String"]["input"]; + content?: InputMaybe; + eventId: Scalars['ID']['input']; + receiverEmails?: InputMaybe>; + subject: Scalars['String']['input']; }; + export type MutationsSubmitAnswersArgs = { answersData?: InputMaybe>; - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; }; + export type MutationsUpdateArchivedocumentArgs = { - date?: InputMaybe; - fileLocation?: InputMaybe; - id?: InputMaybe; - title?: InputMaybe; - typeDoc?: InputMaybe; - webLink?: InputMaybe; + date?: InputMaybe; + fileLocation?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + typeDoc?: InputMaybe; + webLink?: InputMaybe; }; + export type MutationsUpdateBlogArgs = { blogData?: InputMaybe; }; + export type MutationsUpdateBlogPostArgs = { blogPostData?: InputMaybe; }; + export type MutationsUpdateBookingArgs = { bookingData?: InputMaybe; }; + export type MutationsUpdateBookingSemesterArgs = { semesterData?: InputMaybe; }; + export type MutationsUpdateCabinArgs = { cabinData?: InputMaybe; }; + export type MutationsUpdateCategoryArgs = { categoryData?: InputMaybe; - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationsUpdateEventArgs = { eventData?: InputMaybe; - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationsUpdateFormArgs = { formData: BaseFormInput; - id?: InputMaybe; + id?: InputMaybe; }; + export type MutationsUpdateListingArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; listingData?: InputMaybe; }; + export type MutationsUpdateOrganizationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; organizationData?: InputMaybe; }; + export type MutationsUpdateQuestionArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; questionData: BaseQuestionInput; }; + export type MutationsUpdateUserArgs = { userData?: InputMaybe; }; export type OptionInput = { - answer: Scalars["String"]["input"]; - id?: InputMaybe; + answer: Scalars['String']['input']; + id?: InputMaybe; }; /** Option for multiple choice questions */ export type OptionType = { - __typename?: "OptionType"; - answer: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; + __typename?: 'OptionType'; + answer: Scalars['String']['output']; + id: Scalars['ID']['output']; question: QuestionType; }; export type OrderType = { - __typename?: "OrderType"; - deliveredProduct: Scalars["Boolean"]["output"]; - id: Scalars["UUID"]["output"]; + __typename?: 'OrderType'; + deliveredProduct: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; paymentStatus: PaymentStatus; product: ProductType; - quantity: Scalars["Int"]["output"]; - timestamp: Scalars["DateTime"]["output"]; - totalPrice: Scalars["Decimal"]["output"]; + quantity: Scalars['Int']['output']; + timestamp: Scalars['DateTime']['output']; + totalPrice: Scalars['Decimal']['output']; user: UserType; }; export type OrdersByStatusType = { - __typename?: "OrdersByStatusType"; - length?: Maybe; + __typename?: 'OrdersByStatusType'; + length?: Maybe; orders?: Maybe>; }; export type OrganizationInput = { - description?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; }; export type OrganizationType = { - __typename?: "OrganizationType"; - absoluteSlug?: Maybe; + __typename?: 'OrganizationType'; + absoluteSlug?: Maybe; children: Array; - color?: Maybe; - description: Scalars["String"]["output"]; + color?: Maybe; + description: Scalars['String']['output']; events: Array; hrGroup?: Maybe; - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; listings?: Maybe>; - logoUrl?: Maybe; - name: Scalars["String"]["output"]; + logoUrl?: Maybe; + name: Scalars['String']['output']; parent?: Maybe; primaryGroup?: Maybe; - slug: Scalars["String"]["output"]; + slug: Scalars['String']['output']; users: Array; }; /** An enumeration. */ export enum PaymentStatus { - Cancelled = "CANCELLED", - Captured = "CAPTURED", - Failed = "FAILED", - Initiated = "INITIATED", - Refunded = "REFUNDED", - Rejected = "REJECTED", - Reserved = "RESERVED", + Cancelled = 'CANCELLED', + Captured = 'CAPTURED', + Failed = 'FAILED', + Initiated = 'INITIATED', + Refunded = 'REFUNDED', + Rejected = 'REJECTED', + Reserved = 'RESERVED' } export type ProductType = { - __typename?: "ProductType"; - description: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - maxBuyableQuantity: Scalars["Int"]["output"]; - name: Scalars["String"]["output"]; - price: Scalars["Decimal"]["output"]; - shopItem: Scalars["Boolean"]["output"]; + __typename?: 'ProductType'; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + maxBuyableQuantity: Scalars['Int']['output']; + name: Scalars['String']['output']; + price: Scalars['Decimal']['output']; + shopItem: Scalars['Boolean']['output']; }; export type Queries = { - __typename?: "Queries"; + __typename?: 'Queries'; activeBookingResponsible?: Maybe; adminAllBookings?: Maybe>; allBlogPosts?: Maybe>; @@ -967,10 +1018,10 @@ export type Queries = { allUserOrders?: Maybe>; allUsers?: Maybe>; archiveByTypes: Array; - attendeeReport?: Maybe; - attendeeReportOrg?: Maybe; - attendeeReports?: Maybe; - availableYears: Array; + attendeeReport?: Maybe; + attendeeReportOrg?: Maybe; + attendeeReports?: Maybe; + availableYears: Array; blog?: Maybe; blogPost?: Maybe; bookingSemester?: Maybe; @@ -982,10 +1033,10 @@ export type Queries = { featuredArchive: Array; form?: Maybe; forms?: Maybe>; - hasPermission?: Maybe; + hasPermission?: Maybe; listing?: Maybe; listings?: Maybe>; - logout: Scalars["String"]["output"]; + logout: Scalars['String']['output']; memberships?: Maybe>; order?: Maybe; ordersByStatus?: Maybe; @@ -994,9355 +1045,1062 @@ export type Queries = { products?: Maybe>; response?: Maybe; responses?: Maybe>; - serverTime?: Maybe; + serverTime?: Maybe; signUps?: Maybe; user?: Maybe; userOrders?: Maybe>; }; + export type QueriesAdminAllBookingsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; }; + export type QueriesAllEventsArgs = { - category?: InputMaybe; - endTime?: InputMaybe; - organization?: InputMaybe; - startTime?: InputMaybe; + category?: InputMaybe; + endTime?: InputMaybe; + organization?: InputMaybe; + startTime?: InputMaybe; }; + export type QueriesAllOrganizationsArgs = { - search?: InputMaybe; + search?: InputMaybe; }; + export type QueriesArchiveByTypesArgs = { - names?: InputMaybe; - typeDoc: Array>; - year?: InputMaybe; + names?: InputMaybe; + typeDoc: Array>; + year?: InputMaybe; }; + export type QueriesAttendeeReportArgs = { - eventId: Scalars["ID"]["input"]; - fields?: InputMaybe>; - filetype?: InputMaybe; + eventId: Scalars['ID']['input']; + fields?: InputMaybe>; + filetype?: InputMaybe; }; + export type QueriesAttendeeReportOrgArgs = { - fields?: InputMaybe>; - filetype?: InputMaybe; - orgId: Scalars["ID"]["input"]; + fields?: InputMaybe>; + filetype?: InputMaybe; + orgId: Scalars['ID']['input']; }; + export type QueriesAttendeeReportsArgs = { - eventIds: Array; - fields?: InputMaybe>; - filetype?: InputMaybe; + eventIds: Array; + fields?: InputMaybe>; + filetype?: InputMaybe; }; + export type QueriesBlogArgs = { - blogId: Scalars["ID"]["input"]; + blogId: Scalars['ID']['input']; }; + export type QueriesBlogPostArgs = { - blogPostId: Scalars["ID"]["input"]; + blogPostId: Scalars['ID']['input']; }; + export type QueriesCategoryArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueriesEventArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueriesFormArgs = { - formId?: InputMaybe; + formId?: InputMaybe; }; + export type QueriesHasPermissionArgs = { - permission: Scalars["String"]["input"]; + permission: Scalars['String']['input']; }; + export type QueriesListingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type QueriesListingsArgs = { - search?: InputMaybe; + search?: InputMaybe; }; + export type QueriesMembershipsArgs = { - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; + export type QueriesOrderArgs = { - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }; + export type QueriesOrdersByStatusArgs = { - productId: Scalars["ID"]["input"]; - status: Scalars["String"]["input"]; + productId: Scalars['ID']['input']; + status: Scalars['String']['input']; }; + export type QueriesOrganizationArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueriesProductArgs = { - productId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; }; + export type QueriesResponseArgs = { - formId: Scalars["ID"]["input"]; - responseId?: InputMaybe; + formId: Scalars['ID']['input']; + responseId?: InputMaybe; }; + export type QueriesResponsesArgs = { - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; }; + export type QueriesSignUpsArgs = { - eventId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; }; /** A question on a form. */ export type QuestionType = { - __typename?: "QuestionType"; + __typename?: 'QuestionType'; answer?: Maybe; answers?: Maybe>; - description: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - mandatory: Scalars["Boolean"]["output"]; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + mandatory: Scalars['Boolean']['output']; options?: Maybe>; - question: Scalars["String"]["output"]; + question: Scalars['String']['output']; questionType?: Maybe; }; + /** A question on a form. */ export type QuestionTypeAnswersArgs = { - userId?: InputMaybe; + userId?: InputMaybe; }; export enum QuestionTypeEnum { - Checkboxes = "CHECKBOXES", - Dropdown = "DROPDOWN", - FileUpload = "FILE_UPLOAD", - MultipleChoice = "MULTIPLE_CHOICE", - Paragraph = "PARAGRAPH", - ShortAnswer = "SHORT_ANSWER", - Slider = "SLIDER", + Checkboxes = 'CHECKBOXES', + Dropdown = 'DROPDOWN', + FileUpload = 'FILE_UPLOAD', + MultipleChoice = 'MULTIPLE_CHOICE', + Paragraph = 'PARAGRAPH', + ShortAnswer = 'SHORT_ANSWER', + Slider = 'SLIDER' } /** An enumeration. */ export enum ResponseStatus { /** Red */ - A_0 = "A_0", + A_0 = 'A_0', /** Yellow */ - A_1 = "A_1", + A_1 = 'A_1', /** Green */ - A_2 = "A_2", + A_2 = 'A_2', /** Unknown */ - None = "NONE", + None = 'NONE' } /** A response instance that contains information about a user's response to a form. */ export type ResponseType = { - __typename?: "ResponseType"; + __typename?: 'ResponseType'; answers: Array; form: FormType; - id?: Maybe; + id?: Maybe; questions?: Maybe>; respondent: UserType; status?: Maybe; - uuid: Scalars["UUID"]["output"]; + uuid: Scalars['UUID']['output']; }; export type ResponsibleGroupType = { - __typename?: "ResponsibleGroupType"; - description?: Maybe; - groupType: Scalars["String"]["output"]; - id: Scalars["ID"]["output"]; - name: Scalars["String"]["output"]; + __typename?: 'ResponsibleGroupType'; + description?: Maybe; + groupType: Scalars['String']['output']; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; organization: OrganizationType; - uuid: Scalars["UUID"]["output"]; + uuid: Scalars['UUID']['output']; }; /** Sends email to the user or an admin (or both) */ export type SendEmail = { - __typename?: "SendEmail"; - ok?: Maybe; + __typename?: 'SendEmail'; + ok?: Maybe; }; /** Send an email to all users signed up to an event */ export type SendEventEmails = { - __typename?: "SendEventEmails"; - ok?: Maybe; + __typename?: 'SendEventEmails'; + ok?: Maybe; }; export type SignUpType = { - __typename?: "SignUpType"; + __typename?: 'SignUpType'; event: EventType; - extraInformation: Scalars["String"]["output"]; - hasBoughtTicket?: Maybe; - id: Scalars["ID"]["output"]; - isAttending: Scalars["Boolean"]["output"]; - timestamp: Scalars["DateTime"]["output"]; + extraInformation: Scalars['String']['output']; + hasBoughtTicket?: Maybe; + id: Scalars['ID']['output']; + isAttending: Scalars['Boolean']['output']; + timestamp: Scalars['DateTime']['output']; user: UserType; - userAllergies?: Maybe; - userEmail: Scalars["String"]["output"]; - userGradeYear: Scalars["Int"]["output"]; - userPhoneNumber: Scalars["String"]["output"]; + userAllergies?: Maybe; + userEmail: Scalars['String']['output']; + userGradeYear: Scalars['Int']['output']; + userPhoneNumber: Scalars['String']['output']; }; export type SubmitOrUpdateAnswers = { - __typename?: "SubmitOrUpdateAnswers"; - message?: Maybe; - ok?: Maybe; + __typename?: 'SubmitOrUpdateAnswers'; + message?: Maybe; + ok?: Maybe; }; export type UpdateArchiveDocument = { - __typename?: "UpdateArchiveDocument"; + __typename?: 'UpdateArchiveDocument'; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlog = { - __typename?: "UpdateBlog"; + __typename?: 'UpdateBlog'; blog?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlogInput = { - description?: InputMaybe; - id: Scalars["ID"]["input"]; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']['input']; + name?: InputMaybe; + organizationId?: InputMaybe; }; export type UpdateBlogPost = { - __typename?: "UpdateBlogPost"; + __typename?: 'UpdateBlogPost'; blogPost?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlogPostInput = { - blogId?: InputMaybe; - id: Scalars["ID"]["input"]; - text?: InputMaybe; - title?: InputMaybe; + blogId?: InputMaybe; + id: Scalars['ID']['input']; + text?: InputMaybe; + title?: InputMaybe; }; /** Change the given booking */ export type UpdateBooking = { - __typename?: "UpdateBooking"; + __typename?: 'UpdateBooking'; booking?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBookingInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - declineReason?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - id: Scalars["ID"]["input"]; - internalParticipants?: InputMaybe; - isDeclined?: InputMaybe; - isTentative?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + declineReason?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + id: Scalars['ID']['input']; + internalParticipants?: InputMaybe; + isDeclined?: InputMaybe; + isTentative?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; /** Update the booking semester */ export type UpdateBookingSemester = { - __typename?: "UpdateBookingSemester"; + __typename?: 'UpdateBookingSemester'; bookingSemester?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBookingSemesterInput = { - fallEndDate?: InputMaybe; - fallSemesterActive?: InputMaybe; - fallStartDate?: InputMaybe; - springEndDate?: InputMaybe; - springSemesterActive?: InputMaybe; - springStartDate?: InputMaybe; + fallEndDate?: InputMaybe; + fallSemesterActive?: InputMaybe; + fallStartDate?: InputMaybe; + springEndDate?: InputMaybe; + springSemesterActive?: InputMaybe; + springStartDate?: InputMaybe; }; export type UpdateBookingSemesterType = { - __typename?: "UpdateBookingSemesterType"; - fallEndDate: Scalars["Date"]["output"]; - fallSemesterActive: Scalars["Boolean"]["output"]; - fallStartDate: Scalars["Date"]["output"]; - id: Scalars["ID"]["output"]; - springEndDate: Scalars["Date"]["output"]; - springSemesterActive: Scalars["Boolean"]["output"]; - springStartDate: Scalars["Date"]["output"]; + __typename?: 'UpdateBookingSemesterType'; + fallEndDate: Scalars['Date']['output']; + fallSemesterActive: Scalars['Boolean']['output']; + fallStartDate: Scalars['Date']['output']; + id: Scalars['ID']['output']; + springEndDate: Scalars['Date']['output']; + springSemesterActive: Scalars['Boolean']['output']; + springStartDate: Scalars['Date']['output']; }; /** Change the given cabin */ export type UpdateCabin = { - __typename?: "UpdateCabin"; + __typename?: 'UpdateCabin'; cabin?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateCabinInput = { - externalPrice?: InputMaybe; - externalPriceWeekend?: InputMaybe; - id?: InputMaybe; - internalPrice?: InputMaybe; - internalPriceWeekend?: InputMaybe; - maxGuests?: InputMaybe; - name?: InputMaybe; + externalPrice?: InputMaybe; + externalPriceWeekend?: InputMaybe; + id?: InputMaybe; + internalPrice?: InputMaybe; + internalPriceWeekend?: InputMaybe; + maxGuests?: InputMaybe; + name?: InputMaybe; }; /** Updates the category with a given ID with the data in category_data */ export type UpdateCategory = { - __typename?: "UpdateCategory"; + __typename?: 'UpdateCategory'; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Updates the event with a given ID with the data in event_data */ export type UpdateEvent = { - __typename?: "UpdateEvent"; + __typename?: 'UpdateEvent'; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateEventInput = { - allowedGradeYears?: InputMaybe>; - availableSlots?: InputMaybe; - bindingSignup?: InputMaybe; - categoryId?: InputMaybe; - contactEmail?: InputMaybe; - deadline?: InputMaybe; - description?: InputMaybe; - endTime?: InputMaybe; - hasExtraInformation?: InputMaybe; - image?: InputMaybe; - isAttendable?: InputMaybe; - location?: InputMaybe; - organizationId?: InputMaybe; - price?: InputMaybe; - shortDescription?: InputMaybe; - signupOpenDate?: InputMaybe; - startTime?: InputMaybe; - title?: InputMaybe; + allowedGradeYears?: InputMaybe>; + availableSlots?: InputMaybe; + bindingSignup?: InputMaybe; + categoryId?: InputMaybe; + contactEmail?: InputMaybe; + deadline?: InputMaybe; + description?: InputMaybe; + endTime?: InputMaybe; + hasExtraInformation?: InputMaybe; + image?: InputMaybe; + isAttendable?: InputMaybe; + location?: InputMaybe; + organizationId?: InputMaybe; + price?: InputMaybe; + shortDescription?: InputMaybe; + signupOpenDate?: InputMaybe; + startTime?: InputMaybe; + title?: InputMaybe; }; export type UpdateForm = { - __typename?: "UpdateForm"; + __typename?: 'UpdateForm'; form?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateListing = { - __typename?: "UpdateListing"; + __typename?: 'UpdateListing'; listing?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateOrganization = { - __typename?: "UpdateOrganization"; - ok?: Maybe; + __typename?: 'UpdateOrganization'; + ok?: Maybe; organization?: Maybe; }; export type UpdateQuestion = { - __typename?: "UpdateQuestion"; - ok?: Maybe; + __typename?: 'UpdateQuestion'; + ok?: Maybe; question?: Maybe; }; export type UpdateUser = { - __typename?: "UpdateUser"; + __typename?: 'UpdateUser'; user?: Maybe; }; export type UserAttendingType = { - __typename?: "UserAttendingType"; - hasBoughtTicket?: Maybe; - isOnWaitingList?: Maybe; - isSignedUp?: Maybe; - positionOnWaitingList?: Maybe; + __typename?: 'UserAttendingType'; + hasBoughtTicket?: Maybe; + isOnWaitingList?: Maybe; + isSignedUp?: Maybe; + positionOnWaitingList?: Maybe; }; export type UserInput = { - allergies?: InputMaybe; - email?: InputMaybe; - firstName?: InputMaybe; - graduationYear?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; + allergies?: InputMaybe; + email?: InputMaybe; + firstName?: InputMaybe; + graduationYear?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; }; export type UserType = { - __typename?: "UserType"; - allergies?: Maybe; - canUpdateYear?: Maybe; - dateJoined: Scalars["DateTime"]["output"]; - email: Scalars["String"]["output"]; + __typename?: 'UserType'; + allergies?: Maybe; + canUpdateYear?: Maybe; + dateJoined: Scalars['DateTime']['output']; + email: Scalars['String']['output']; events?: Maybe>; - feideEmail: Scalars["String"]["output"]; - feideUserid: Scalars["String"]["output"]; - firstLogin: Scalars["Boolean"]["output"]; - firstName: Scalars["String"]["output"]; - gradeYear?: Maybe; - graduationYear?: Maybe; - id: Scalars["ID"]["output"]; - idToken: Scalars["String"]["output"]; - lastLogin?: Maybe; - lastName: Scalars["String"]["output"]; + feideEmail: Scalars['String']['output']; + feideUserid: Scalars['String']['output']; + firstLogin: Scalars['Boolean']['output']; + firstName: Scalars['String']['output']; + gradeYear?: Maybe; + graduationYear?: Maybe; + id: Scalars['ID']['output']; + idToken: Scalars['String']['output']; + lastLogin?: Maybe; + lastName: Scalars['String']['output']; memberships: Array; organizations: Array; - phoneNumber: Scalars["String"]["output"]; + phoneNumber: Scalars['String']['output']; responses: Array; /** Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. */ - username: Scalars["String"]["output"]; - yearUpdatedAt?: Maybe; + username: Scalars['String']['output']; + yearUpdatedAt?: Maybe; }; export type ArchiveByTypesQueryVariables = Exact<{ - documentTypes: Array> | InputMaybe; - year?: InputMaybe; - names?: InputMaybe; + documentTypes: Array> | InputMaybe; + year?: InputMaybe; + names?: InputMaybe; }>; -export type ArchiveByTypesQuery = { - __typename?: "Queries"; - archiveByTypes: Array<{ - __typename?: "ArchiveDocumentType"; - id: string; - title: string; - thumbnail?: string | null; - typeDoc: ArchiveDocumentTypeDoc; - year?: number | null; - webLink?: string | null; - }>; -}; - -export type FeaturedArchiveQueryVariables = Exact<{ [key: string]: never }>; - -export type FeaturedArchiveQuery = { - __typename?: "Queries"; - featuredArchive: Array<{ - __typename?: "ArchiveDocumentType"; - id: string; - title: string; - thumbnail?: string | null; - typeDoc: ArchiveDocumentTypeDoc; - year?: number | null; - webLink?: string | null; - }>; -}; - -export type AvailableYearsQueryVariables = Exact<{ [key: string]: never }>; - -export type AvailableYearsQuery = { __typename?: "Queries"; availableYears: Array }; - -export type DocumentFragment = { - __typename?: "ArchiveDocumentType"; - id: string; - title: string; - thumbnail?: string | null; - typeDoc: ArchiveDocumentTypeDoc; - year?: number | null; - webLink?: string | null; -}; + +export type ArchiveByTypesQuery = { __typename?: 'Queries', archiveByTypes: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; + +export type FeaturedArchiveQueryVariables = Exact<{ [key: string]: never; }>; + + +export type FeaturedArchiveQuery = { __typename?: 'Queries', featuredArchive: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; + +export type AvailableYearsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AvailableYearsQuery = { __typename?: 'Queries', availableYears: Array }; + +export type DocumentFragment = { __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }; export type DocumentsQueryVariables = Exact<{ - documentTypes: Array | Scalars["String"]["input"]; - year?: InputMaybe; - names?: InputMaybe; + documentTypes: Array | Scalars['String']['input']; + year?: InputMaybe; + names?: InputMaybe; }>; -export type DocumentsQuery = { - __typename?: "Queries"; - availableYears: Array; - hasPermission?: boolean | null; - archiveByTypes: Array<{ - __typename?: "ArchiveDocumentType"; - id: string; - title: string; - thumbnail?: string | null; - typeDoc: ArchiveDocumentTypeDoc; - year?: number | null; - webLink?: string | null; - }>; - featuredArchive: Array<{ - __typename?: "ArchiveDocumentType"; - id: string; - title: string; - thumbnail?: string | null; - typeDoc: ArchiveDocumentTypeDoc; - year?: number | null; - webLink?: string | null; - }>; -}; - -export type CabinFragment = { - __typename?: "CabinType"; - id: string; - name: string; - maxGuests: number; - internalPrice: number; - externalPrice: number; - internalPriceWeekend: number; - externalPriceWeekend: number; -}; - -export type BookingFragment = { - __typename?: "AllBookingsType"; - id: string; - checkIn: string; - checkOut: string; - cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; -}; - -export type AdminBookingFragment = { - __typename?: "AdminBookingType"; - id: string; - checkIn: string; - checkOut: string; - firstName: string; - lastName: string; - phone: string; - receiverEmail: string; - externalParticipants: number; - internalParticipants: number; - price?: number | null; - isTentative: boolean; - isDeclined: boolean; - timestamp: string; - extraInfo: string; - declineReason: string; - cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; -}; - -export type BookingResponsibleFragment = { - __typename?: "BookingResponsibleType"; - id: string; - active?: boolean | null; - firstName?: string | null; - lastName?: string | null; - email?: string | null; - phone?: number | null; -}; - -export type BookingSemesterFragment = { - __typename?: "UpdateBookingSemesterType"; - fallStartDate: string; - fallEndDate: string; - springStartDate: string; - springEndDate: string; - fallSemesterActive: boolean; - springSemesterActive: boolean; -}; + +export type DocumentsQuery = { __typename?: 'Queries', availableYears: Array, hasPermission?: boolean | null, archiveByTypes: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }>, featuredArchive: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; + +export type CabinFragment = { __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }; + +export type BookingFragment = { __typename?: 'AllBookingsType', id: string, checkIn: string, checkOut: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }; + +export type AdminBookingFragment = { __typename?: 'AdminBookingType', id: string, checkIn: string, checkOut: string, firstName: string, lastName: string, phone: string, receiverEmail: string, externalParticipants: number, internalParticipants: number, price?: number | null, isTentative: boolean, isDeclined: boolean, timestamp: string, extraInfo: string, declineReason: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }; + +export type BookingResponsibleFragment = { __typename?: 'BookingResponsibleType', id: string, active?: boolean | null, firstName?: string | null, lastName?: string | null, email?: string | null, phone?: number | null }; + +export type BookingSemesterFragment = { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean }; export type CreateBookingMutationVariables = Exact<{ bookingData: BookingInput; }>; -export type CreateBookingMutation = { - __typename?: "Mutations"; - createBooking?: { __typename?: "CreateBooking"; ok?: boolean | null } | null; -}; + +export type CreateBookingMutation = { __typename?: 'Mutations', createBooking?: { __typename?: 'CreateBooking', ok?: boolean | null } | null }; export type ConfirmBookingMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type ConfirmBookingMutation = { - __typename?: "Mutations"; - updateBooking?: { __typename?: "UpdateBooking"; ok?: boolean | null } | null; -}; + +export type ConfirmBookingMutation = { __typename?: 'Mutations', updateBooking?: { __typename?: 'UpdateBooking', ok?: boolean | null } | null }; export type DeclineBookingMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; - declineReason?: InputMaybe; + id: Scalars['ID']['input']; + declineReason?: InputMaybe; }>; -export type DeclineBookingMutation = { - __typename?: "Mutations"; - updateBooking?: { __typename?: "UpdateBooking"; ok?: boolean | null } | null; -}; + +export type DeclineBookingMutation = { __typename?: 'Mutations', updateBooking?: { __typename?: 'UpdateBooking', ok?: boolean | null } | null }; export type SendEmailMutationVariables = Exact<{ emailInput: EmailInput; }>; -export type SendEmailMutation = { - __typename?: "Mutations"; - sendEmail?: { __typename?: "SendEmail"; ok?: boolean | null } | null; -}; + +export type SendEmailMutation = { __typename?: 'Mutations', sendEmail?: { __typename?: 'SendEmail', ok?: boolean | null } | null }; export type UpdateCabinMutationVariables = Exact<{ cabinData: UpdateCabinInput; }>; -export type UpdateCabinMutation = { - __typename?: "Mutations"; - updateCabin?: { - __typename?: "UpdateCabin"; - cabin?: { - __typename?: "CabinType"; - id: string; - name: string; - maxGuests: number; - internalPrice: number; - externalPrice: number; - internalPriceWeekend: number; - externalPriceWeekend: number; - } | null; - } | null; -}; + +export type UpdateCabinMutation = { __typename?: 'Mutations', updateCabin?: { __typename?: 'UpdateCabin', cabin?: { __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number } | null } | null }; export type UpdateBookingSemesterMutationVariables = Exact<{ semesterData: UpdateBookingSemesterInput; }>; -export type UpdateBookingSemesterMutation = { - __typename?: "Mutations"; - updateBookingSemester?: { - __typename?: "UpdateBookingSemester"; - bookingSemester?: { - __typename?: "UpdateBookingSemesterType"; - fallStartDate: string; - fallEndDate: string; - springStartDate: string; - springEndDate: string; - fallSemesterActive: boolean; - springSemesterActive: boolean; - } | null; - } | null; -}; - -export type CabinsQueryVariables = Exact<{ [key: string]: never }>; - -export type CabinsQuery = { - __typename?: "Queries"; - cabins?: Array<{ - __typename?: "CabinType"; - id: string; - name: string; - maxGuests: number; - internalPrice: number; - externalPrice: number; - internalPriceWeekend: number; - externalPriceWeekend: number; - }> | null; -}; - -export type AllBookingsQueryVariables = Exact<{ [key: string]: never }>; - -export type AllBookingsQuery = { - __typename?: "Queries"; - allBookings?: Array<{ - __typename?: "AllBookingsType"; - id: string; - checkIn: string; - checkOut: string; - cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; - }> | null; -}; + +export type UpdateBookingSemesterMutation = { __typename?: 'Mutations', updateBookingSemester?: { __typename?: 'UpdateBookingSemester', bookingSemester?: { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean } | null } | null }; + +export type CabinsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type CabinsQuery = { __typename?: 'Queries', cabins?: Array<{ __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }> | null }; + +export type AllBookingsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllBookingsQuery = { __typename?: 'Queries', allBookings?: Array<{ __typename?: 'AllBookingsType', id: string, checkIn: string, checkOut: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }> | null }; export type AdminAllBookingsQueryVariables = Exact<{ - after?: InputMaybe; + after?: InputMaybe; }>; -export type AdminAllBookingsQuery = { - __typename?: "Queries"; - adminAllBookings?: Array<{ - __typename?: "AdminBookingType"; - id: string; - checkIn: string; - checkOut: string; - firstName: string; - lastName: string; - phone: string; - receiverEmail: string; - externalParticipants: number; - internalParticipants: number; - price?: number | null; - isTentative: boolean; - isDeclined: boolean; - timestamp: string; - extraInfo: string; - declineReason: string; - cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; - }> | null; -}; - -export type ActiveBookingResponsibleQueryVariables = Exact<{ [key: string]: never }>; - -export type ActiveBookingResponsibleQuery = { - __typename?: "Queries"; - activeBookingResponsible?: { - __typename?: "BookingResponsibleType"; - id: string; - active?: boolean | null; - firstName?: string | null; - lastName?: string | null; - email?: string | null; - phone?: number | null; - } | null; -}; - -export type CabinsAndResponsiblesQueryVariables = Exact<{ [key: string]: never }>; - -export type CabinsAndResponsiblesQuery = { - __typename?: "Queries"; - cabins?: Array<{ - __typename?: "CabinType"; - id: string; - name: string; - maxGuests: number; - internalPrice: number; - externalPrice: number; - internalPriceWeekend: number; - externalPriceWeekend: number; - }> | null; - activeBookingResponsible?: { __typename?: "BookingResponsibleType"; id: string; email?: string | null } | null; -}; - -export type BookingSemesterQueryVariables = Exact<{ [key: string]: never }>; - -export type BookingSemesterQuery = { - __typename?: "Queries"; - bookingSemester?: { - __typename?: "UpdateBookingSemesterType"; - fallStartDate: string; - fallEndDate: string; - springStartDate: string; - springEndDate: string; - fallSemesterActive: boolean; - springSemesterActive: boolean; - } | null; -}; - -export type ProductFragment = { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; -}; - -export type OrderFragment = { - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; -}; + +export type AdminAllBookingsQuery = { __typename?: 'Queries', adminAllBookings?: Array<{ __typename?: 'AdminBookingType', id: string, checkIn: string, checkOut: string, firstName: string, lastName: string, phone: string, receiverEmail: string, externalParticipants: number, internalParticipants: number, price?: number | null, isTentative: boolean, isDeclined: boolean, timestamp: string, extraInfo: string, declineReason: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }> | null }; + +export type ActiveBookingResponsibleQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ActiveBookingResponsibleQuery = { __typename?: 'Queries', activeBookingResponsible?: { __typename?: 'BookingResponsibleType', id: string, active?: boolean | null, firstName?: string | null, lastName?: string | null, email?: string | null, phone?: number | null } | null }; + +export type CabinsAndResponsiblesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type CabinsAndResponsiblesQuery = { __typename?: 'Queries', cabins?: Array<{ __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }> | null, activeBookingResponsible?: { __typename?: 'BookingResponsibleType', id: string, email?: string | null } | null }; + +export type BookingSemesterQueryVariables = Exact<{ [key: string]: never; }>; + + +export type BookingSemesterQuery = { __typename?: 'Queries', bookingSemester?: { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean } | null }; + +export type ProductFragment = { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }; + +export type OrderFragment = { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }; export type InitiateOrderMutationVariables = Exact<{ - productId: Scalars["ID"]["input"]; - quantity?: InputMaybe; - fallbackRedirect?: InputMaybe; + productId: Scalars['ID']['input']; + quantity?: InputMaybe; + fallbackRedirect?: InputMaybe; }>; -export type InitiateOrderMutation = { - __typename?: "Mutations"; - initiateOrder?: { __typename?: "InitiateOrder"; redirect?: string | null; orderId?: string | null } | null; -}; + +export type InitiateOrderMutation = { __typename?: 'Mutations', initiateOrder?: { __typename?: 'InitiateOrder', redirect?: string | null, orderId?: string | null } | null }; export type AttemptCapturePaymentMutationVariables = Exact<{ - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }>; -export type AttemptCapturePaymentMutation = { - __typename?: "Mutations"; - attemptCapturePayment?: { - __typename?: "AttemptCapturePayment"; - status?: PaymentStatus | null; - order?: { - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; - } | null; - } | null; -}; + +export type AttemptCapturePaymentMutation = { __typename?: 'Mutations', attemptCapturePayment?: { __typename?: 'AttemptCapturePayment', status?: PaymentStatus | null, order?: { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } } | null } | null }; export type DeliveredProductMutationVariables = Exact<{ - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }>; -export type DeliveredProductMutation = { - __typename?: "Mutations"; - deliveredProduct?: { - __typename?: "DeliveredProduct"; - order?: { - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; - } | null; - } | null; -}; + +export type DeliveredProductMutation = { __typename?: 'Mutations', deliveredProduct?: { __typename?: 'DeliveredProduct', order?: { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } } | null } | null }; export type ProductQueryVariables = Exact<{ - productId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; }>; -export type ProductQuery = { - __typename?: "Queries"; - product?: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - } | null; -}; - -export type ProductsQueryVariables = Exact<{ [key: string]: never }>; - -export type ProductsQuery = { - __typename?: "Queries"; - products?: Array<{ - __typename?: "ProductType"; - id: string; - name: string; - price: number; - description: string; - maxBuyableQuantity: number; - shopItem: boolean; - }> | null; -}; - -export type UserOrdersQueryVariables = Exact<{ [key: string]: never }>; - -export type UserOrdersQuery = { - __typename?: "Queries"; - userOrders?: Array<{ - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; - }> | null; -}; - -export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never }>; - -export type AllUserOrdersQuery = { - __typename?: "Queries"; - allUserOrders?: Array<{ - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; - }> | null; -}; - -export type AllShopOrdersQueryVariables = Exact<{ [key: string]: never }>; - -export type AllShopOrdersQuery = { - __typename?: "Queries"; - allShopOrders?: Array<{ - __typename?: "OrderType"; - id: string; - quantity: number; - totalPrice: number; - paymentStatus: PaymentStatus; - timestamp: string; - deliveredProduct: boolean; - product: { - __typename?: "ProductType"; - id: string; - name: string; - description: string; - price: number; - maxBuyableQuantity: number; - shopItem: boolean; - }; - user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; - }> | null; -}; - -export type EventFieldsFragment = { - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - allowedGradeYears?: Array | null; - isFull?: boolean | null; - isAttendable: boolean; - signupOpenDate?: string | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; -}; - -export type EventDetailFieldsFragment = { - __typename?: "EventType"; - id: string; - title: string; - description: string; - shortDescription?: string | null; - startTime: string; - endTime?: string | null; - location?: string | null; - contactEmail: string; - allowedGradeYears?: Array | null; - hasExtraInformation: boolean; - isFull?: boolean | null; - signupOpenDate?: string | null; - deadline?: string | null; - isAttendable: boolean; - bindingSignup: boolean; - price?: number | null; - product?: { __typename?: "ProductType"; id: string } | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - positionOnWaitingList?: number | null; - hasBoughtTicket?: boolean | null; - } | null; - category?: { __typename?: "CategoryType"; id: string; name: string } | null; - organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; -}; - -export type AdminEventFragment = { - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - endTime?: string | null; - location?: string | null; - description: string; - image?: string | null; - isAttendable: boolean; - deadline?: string | null; - availableSlots?: number | null; - price?: number | null; - shortDescription?: string | null; - signupOpenDate?: string | null; - isFull?: boolean | null; - hasExtraInformation: boolean; - bindingSignup: boolean; - contactEmail: string; - allowedGradeYears?: Array | null; - organization: { __typename?: "OrganizationType"; id: string; name: string }; - category?: { __typename?: "CategoryType"; id: string; name: string } | null; - publisher?: { - __typename?: "UserType"; - id: string; - username: string; - email: string; - firstName: string; - lastName: string; - dateJoined: string; - } | null; - usersAttending?: Array<{ - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - hasBoughtTicket?: boolean | null; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - }> | null; - usersOnWaitingList?: Array<{ - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - }> | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - product?: { __typename?: "ProductType"; id: string } | null; -}; - -export type SignUpFragment = { - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; -}; - -export type SignUpWithTicketFragment = { - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - hasBoughtTicket?: boolean | null; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; -}; + +export type ProductQuery = { __typename?: 'Queries', product?: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean } | null }; + +export type ProductsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ProductsQuery = { __typename?: 'Queries', products?: Array<{ __typename?: 'ProductType', id: string, name: string, price: number, description: string, maxBuyableQuantity: number, shopItem: boolean }> | null }; + +export type UserOrdersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserOrdersQuery = { __typename?: 'Queries', userOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; + +export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllUserOrdersQuery = { __typename?: 'Queries', allUserOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; + +export type AllShopOrdersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllShopOrdersQuery = { __typename?: 'Queries', allShopOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; + +export type EventFieldsFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }; + +export type EventDetailFieldsFragment = { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } }; + +export type AdminEventFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, endTime?: string | null, location?: string | null, description: string, image?: string | null, isAttendable: boolean, deadline?: string | null, availableSlots?: number | null, price?: number | null, shortDescription?: string | null, signupOpenDate?: string | null, isFull?: boolean | null, hasExtraInformation: boolean, bindingSignup: boolean, contactEmail: string, allowedGradeYears?: Array | null, organization: { __typename?: 'OrganizationType', id: string, name: string }, category?: { __typename?: 'CategoryType', id: string, name: string } | null, publisher?: { __typename?: 'UserType', id: string, username: string, email: string, firstName: string, lastName: string, dateJoined: string } | null, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, usersOnWaitingList?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, product?: { __typename?: 'ProductType', id: string } | null }; + +export type SignUpFragment = { __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }; + +export type SignUpWithTicketFragment = { __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }; export type CreateEventMutationVariables = Exact<{ eventData: CreateEventInput; }>; -export type CreateEventMutation = { - __typename?: "Mutations"; - createEvent?: { - __typename?: "CreateEvent"; - ok?: boolean | null; - event?: { - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - allowedGradeYears?: Array | null; - isFull?: boolean | null; - isAttendable: boolean; - signupOpenDate?: string | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; - } | null; - } | null; -}; + +export type CreateEventMutation = { __typename?: 'Mutations', createEvent?: { __typename?: 'CreateEvent', ok?: boolean | null, event?: { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } } | null } | null }; export type UpdateEventMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; eventData: UpdateEventInput; }>; -export type UpdateEventMutation = { - __typename?: "Mutations"; - updateEvent?: { - __typename?: "UpdateEvent"; - ok?: boolean | null; - event?: { - __typename?: "EventType"; - id: string; - title: string; - description: string; - shortDescription?: string | null; - startTime: string; - endTime?: string | null; - location?: string | null; - contactEmail: string; - allowedGradeYears?: Array | null; - hasExtraInformation: boolean; - isFull?: boolean | null; - signupOpenDate?: string | null; - deadline?: string | null; - isAttendable: boolean; - bindingSignup: boolean; - price?: number | null; - product?: { __typename?: "ProductType"; id: string } | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - positionOnWaitingList?: number | null; - hasBoughtTicket?: boolean | null; - } | null; - category?: { __typename?: "CategoryType"; id: string; name: string } | null; - organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; - } | null; - } | null; -}; + +export type UpdateEventMutation = { __typename?: 'Mutations', updateEvent?: { __typename?: 'UpdateEvent', ok?: boolean | null, event?: { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } } | null } | null }; export type EventSignUpMutationVariables = Exact<{ - eventId: Scalars["ID"]["input"]; - extraInformation?: InputMaybe; + eventId: Scalars['ID']['input']; + extraInformation?: InputMaybe; }>; -export type EventSignUpMutation = { - __typename?: "Mutations"; - eventSignUp?: { - __typename?: "EventSignUp"; - isFull?: boolean | null; - event?: { - __typename?: "EventType"; - id: string; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - positionOnWaitingList?: number | null; - } | null; - } | null; - } | null; -}; + +export type EventSignUpMutation = { __typename?: 'Mutations', eventSignUp?: { __typename?: 'EventSignUp', isFull?: boolean | null, event?: { __typename?: 'EventType', id: string, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null } | null } | null } | null }; export type EventSignOffMutationVariables = Exact<{ - eventId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; }>; -export type EventSignOffMutation = { - __typename?: "Mutations"; - eventSignOff?: { - __typename?: "EventSignOff"; - isFull?: boolean | null; - event?: { - __typename?: "EventType"; - id: string; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - positionOnWaitingList?: number | null; - } | null; - } | null; - } | null; -}; + +export type EventSignOffMutation = { __typename?: 'Mutations', eventSignOff?: { __typename?: 'EventSignOff', isFull?: boolean | null, event?: { __typename?: 'EventType', id: string, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null } | null } | null } | null }; export type AdminEventSignOffMutationVariables = Exact<{ - eventId: Scalars["ID"]["input"]; - userId: Scalars["ID"]["input"]; + eventId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }>; -export type AdminEventSignOffMutation = { - __typename?: "Mutations"; - adminEventSignOff?: { - __typename?: "AdminEventSignOff"; - event?: { __typename?: "EventType"; id: string } | null; - } | null; -}; + +export type AdminEventSignOffMutation = { __typename?: 'Mutations', adminEventSignOff?: { __typename?: 'AdminEventSignOff', event?: { __typename?: 'EventType', id: string } | null } | null }; export type SendEventMailsMutationVariables = Exact<{ - eventId: Scalars["ID"]["input"]; - receiverEmails?: InputMaybe | Scalars["String"]["input"]>; - content?: InputMaybe; - subject: Scalars["String"]["input"]; + eventId: Scalars['ID']['input']; + receiverEmails?: InputMaybe | Scalars['String']['input']>; + content?: InputMaybe; + subject: Scalars['String']['input']; }>; -export type SendEventMailsMutation = { - __typename?: "Mutations"; - sendEventMails?: { __typename?: "SendEventEmails"; ok?: boolean | null } | null; -}; + +export type SendEventMailsMutation = { __typename?: 'Mutations', sendEventMails?: { __typename?: 'SendEventEmails', ok?: boolean | null } | null }; export type EventsQueryVariables = Exact<{ - organization?: InputMaybe; - category?: InputMaybe; - startTime?: InputMaybe; - endTime?: InputMaybe; + organization?: InputMaybe; + category?: InputMaybe; + startTime?: InputMaybe; + endTime?: InputMaybe; }>; -export type EventsQuery = { - __typename?: "Queries"; - hasPermission?: boolean | null; - allEvents?: Array<{ - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - allowedGradeYears?: Array | null; - isFull?: boolean | null; - isAttendable: boolean; - signupOpenDate?: string | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; - }> | null; - defaultEvents?: Array<{ - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - allowedGradeYears?: Array | null; - isFull?: boolean | null; - isAttendable: boolean; - signupOpenDate?: string | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; - }> | null; - user?: { __typename?: "UserType"; id: string; gradeYear?: number | null } | null; -}; + +export type EventsQuery = { __typename?: 'Queries', hasPermission?: boolean | null, allEvents?: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }> | null, defaultEvents?: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }> | null, user?: { __typename?: 'UserType', id: string, gradeYear?: number | null } | null }; export type EventDetailsQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type EventDetailsQuery = { - __typename?: "Queries"; - event?: { - __typename?: "EventType"; - id: string; - title: string; - description: string; - shortDescription?: string | null; - startTime: string; - endTime?: string | null; - location?: string | null; - contactEmail: string; - allowedGradeYears?: Array | null; - hasExtraInformation: boolean; - isFull?: boolean | null; - signupOpenDate?: string | null; - deadline?: string | null; - isAttendable: boolean; - bindingSignup: boolean; - price?: number | null; - product?: { __typename?: "ProductType"; id: string } | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - positionOnWaitingList?: number | null; - hasBoughtTicket?: boolean | null; - } | null; - category?: { __typename?: "CategoryType"; id: string; name: string } | null; - organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; - } | null; - user?: { - __typename?: "UserType"; - id: string; - organizations: Array<{ __typename?: "OrganizationType"; id: string }>; - } | null; -}; - -export type AllCategoriesQueryVariables = Exact<{ [key: string]: never }>; - -export type AllCategoriesQuery = { - __typename?: "Queries"; - allCategories?: Array<{ __typename?: "CategoryType"; id: string; name: string }> | null; -}; - -export type EventFilteredOrganizationsQueryVariables = Exact<{ [key: string]: never }>; - -export type EventFilteredOrganizationsQuery = { - __typename?: "Queries"; - eventFilteredOrganizations?: Array<{ - __typename?: "OrganizationType"; - id: string; - name: string; - color?: string | null; - children: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; - }> | null; -}; + +export type EventDetailsQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } } | null, user?: { __typename?: 'UserType', id: string, organizations: Array<{ __typename?: 'OrganizationType', id: string }> } | null }; + +export type AllCategoriesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllCategoriesQuery = { __typename?: 'Queries', allCategories?: Array<{ __typename?: 'CategoryType', id: string, name: string }> | null }; + +export type EventFilteredOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type EventFilteredOrganizationsQuery = { __typename?: 'Queries', eventFilteredOrganizations?: Array<{ __typename?: 'OrganizationType', id: string, name: string, color?: string | null, children: Array<{ __typename?: 'OrganizationType', id: string, name: string }> }> | null }; export type AdminEventQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type AdminEventQuery = { - __typename?: "Queries"; - event?: { - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - endTime?: string | null; - location?: string | null; - description: string; - image?: string | null; - isAttendable: boolean; - deadline?: string | null; - availableSlots?: number | null; - price?: number | null; - shortDescription?: string | null; - signupOpenDate?: string | null; - isFull?: boolean | null; - hasExtraInformation: boolean; - bindingSignup: boolean; - contactEmail: string; - allowedGradeYears?: Array | null; - organization: { __typename?: "OrganizationType"; id: string; name: string }; - category?: { __typename?: "CategoryType"; id: string; name: string } | null; - publisher?: { - __typename?: "UserType"; - id: string; - username: string; - email: string; - firstName: string; - lastName: string; - dateJoined: string; - } | null; - usersAttending?: Array<{ - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - hasBoughtTicket?: boolean | null; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - }> | null; - usersOnWaitingList?: Array<{ - __typename?: "SignUpType"; - userEmail: string; - userGradeYear: number; - userAllergies?: string | null; - userPhoneNumber: string; - extraInformation: string; - user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - }> | null; - userAttendance?: { - __typename?: "UserAttendingType"; - isSignedUp?: boolean | null; - isOnWaitingList?: boolean | null; - } | null; - product?: { __typename?: "ProductType"; id: string } | null; - } | null; -}; + +export type AdminEventQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', id: string, title: string, startTime: string, endTime?: string | null, location?: string | null, description: string, image?: string | null, isAttendable: boolean, deadline?: string | null, availableSlots?: number | null, price?: number | null, shortDescription?: string | null, signupOpenDate?: string | null, isFull?: boolean | null, hasExtraInformation: boolean, bindingSignup: boolean, contactEmail: string, allowedGradeYears?: Array | null, organization: { __typename?: 'OrganizationType', id: string, name: string }, category?: { __typename?: 'CategoryType', id: string, name: string } | null, publisher?: { __typename?: 'UserType', id: string, username: string, email: string, firstName: string, lastName: string, dateJoined: string } | null, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, usersOnWaitingList?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, product?: { __typename?: 'ProductType', id: string } | null } | null }; export type EventSignUpsQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type EventSignUpsQuery = { - __typename?: "Queries"; - event?: { - __typename?: "EventType"; - isAttendable: boolean; - usersAttending?: Array<{ __typename?: "SignUpType"; userEmail: string }> | null; - } | null; -}; + +export type EventSignUpsQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', isAttendable: boolean, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string }> | null } | null }; export type AttendeeReportQueryVariables = Exact<{ - eventId: Scalars["ID"]["input"]; - fields?: InputMaybe | Scalars["String"]["input"]>; - filetype?: InputMaybe; + eventId: Scalars['ID']['input']; + fields?: InputMaybe | Scalars['String']['input']>; + filetype?: InputMaybe; }>; -export type AttendeeReportQuery = { __typename?: "Queries"; attendeeReport?: string | null }; + +export type AttendeeReportQuery = { __typename?: 'Queries', attendeeReport?: string | null }; export type AttendeeReportOrgQueryVariables = Exact<{ - orgId: Scalars["ID"]["input"]; - fields?: InputMaybe | Scalars["String"]["input"]>; - filetype?: InputMaybe; + orgId: Scalars['ID']['input']; + fields?: InputMaybe | Scalars['String']['input']>; + filetype?: InputMaybe; }>; -export type AttendeeReportOrgQuery = { __typename?: "Queries"; attendeeReportOrg?: string | null }; + +export type AttendeeReportOrgQuery = { __typename?: 'Queries', attendeeReportOrg?: string | null }; export type AttendeeReportsQueryVariables = Exact<{ - eventIds: Array | Scalars["ID"]["input"]; - fields?: InputMaybe | Scalars["String"]["input"]>; - filetype?: InputMaybe; + eventIds: Array | Scalars['ID']['input']; + fields?: InputMaybe | Scalars['String']['input']>; + filetype?: InputMaybe; }>; -export type AttendeeReportsQuery = { __typename?: "Queries"; attendeeReports?: string | null }; - -export type EventUserOrganizationsQueryVariables = Exact<{ [key: string]: never }>; - -export type EventUserOrganizationsQuery = { - __typename?: "Queries"; - user?: { - __typename?: "UserType"; - id: string; - organizations: Array<{ __typename?: "OrganizationType"; id: string }>; - } | null; -}; - -export type FormFragment = { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; -}; - -export type FormWithAnswersFragment = { - __typename?: "FormType"; - id: string; - name: string; - description: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; -}; - -export type FormWithAllResponsesFragment = { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; -}; - -export type ResponseFragment = { - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; -}; - -export type QuestionFragment = { - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; -}; - -export type QuestionWithAnswerFragment = { - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; -}; - -export type QuestionWithAnswerIdsFragment = { - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; -}; - -export type OptionFragment = { __typename?: "OptionType"; id: string; answer: string }; - -export type AnswerFragment = { __typename?: "AnswerType"; id?: string | null; answer: string }; - -export type AnswerWithQuestionIdFragment = { - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; -}; + +export type AttendeeReportsQuery = { __typename?: 'Queries', attendeeReports?: string | null }; + +export type EventUserOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type EventUserOrganizationsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, organizations: Array<{ __typename?: 'OrganizationType', id: string }> } | null }; + +export type FormFragment = { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> }; + +export type FormWithAnswersFragment = { __typename?: 'FormType', id: string, name: string, description: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> }; + +export type FormWithAllResponsesFragment = { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null }; + +export type ResponseFragment = { __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }; + +export type QuestionFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; + +export type QuestionWithAnswerFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; + +export type QuestionWithAnswerIdsFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; + +export type OptionFragment = { __typename?: 'OptionType', id: string, answer: string }; + +export type AnswerFragment = { __typename?: 'AnswerType', id?: string | null, answer: string }; + +export type AnswerWithQuestionIdFragment = { __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }; export type CreateFormMutationVariables = Exact<{ formData: CreateFormInput; - listingId?: InputMaybe; + listingId?: InputMaybe; }>; -export type CreateFormMutation = { - __typename?: "Mutations"; - createForm?: { - __typename?: "CreateForm"; - ok?: boolean | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; - } | null; - } | null; -}; + +export type CreateFormMutation = { __typename?: 'Mutations', createForm?: { __typename?: 'CreateForm', ok?: boolean | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null } | null }; export type UpdateFormMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; formData: BaseFormInput; }>; -export type UpdateFormMutation = { - __typename?: "Mutations"; - updateForm?: { - __typename?: "UpdateForm"; - ok?: boolean | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; - } | null; - } | null; -}; + +export type UpdateFormMutation = { __typename?: 'Mutations', updateForm?: { __typename?: 'UpdateForm', ok?: boolean | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null } | null }; export type CreateQuestionMutationVariables = Exact<{ - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; questionData: CreateQuestionInput; }>; -export type CreateQuestionMutation = { - __typename?: "Mutations"; - createQuestion?: { - __typename?: "CreateQuestion"; - ok?: boolean | null; - question?: { - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - } | null; - } | null; -}; + +export type CreateQuestionMutation = { __typename?: 'Mutations', createQuestion?: { __typename?: 'CreateQuestion', ok?: boolean | null, question?: { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null } | null } | null }; export type UpdateQuestionMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; questionData: BaseQuestionInput; optionData?: InputMaybe | OptionInput>; }>; -export type UpdateQuestionMutation = { - __typename?: "Mutations"; - createUpdateAndDeleteOptions?: { __typename?: "CreateUpdateAndDeleteOptions"; ok?: boolean | null } | null; - updateQuestion?: { - __typename?: "UpdateQuestion"; - ok?: boolean | null; - question?: { - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - } | null; - } | null; -}; + +export type UpdateQuestionMutation = { __typename?: 'Mutations', createUpdateAndDeleteOptions?: { __typename?: 'CreateUpdateAndDeleteOptions', ok?: boolean | null } | null, updateQuestion?: { __typename?: 'UpdateQuestion', ok?: boolean | null, question?: { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null } | null } | null }; export type DeleteQuestionMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type DeleteQuestionMutation = { - __typename?: "Mutations"; - deleteQuestion?: { __typename?: "DeleteQuestion"; deletedId?: string | null; ok?: boolean | null } | null; -}; + +export type DeleteQuestionMutation = { __typename?: 'Mutations', deleteQuestion?: { __typename?: 'DeleteQuestion', deletedId?: string | null, ok?: boolean | null } | null }; export type SubmitAnswersMutationVariables = Exact<{ - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; answersData?: InputMaybe | AnswerInput>; }>; -export type SubmitAnswersMutation = { - __typename?: "Mutations"; - submitAnswers?: { __typename?: "SubmitOrUpdateAnswers"; ok?: boolean | null; message?: string | null } | null; -}; + +export type SubmitAnswersMutation = { __typename?: 'Mutations', submitAnswers?: { __typename?: 'SubmitOrUpdateAnswers', ok?: boolean | null, message?: string | null } | null }; export type FormWithAllResponsesQueryVariables = Exact<{ - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; }>; -export type FormWithAllResponsesQuery = { - __typename?: "Queries"; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; - } | null; -}; + +export type FormWithAllResponsesQuery = { __typename?: 'Queries', form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null }; export type FormWithAnswersQueryVariables = Exact<{ - formId: Scalars["ID"]["input"]; + formId: Scalars['ID']['input']; }>; -export type FormWithAnswersQuery = { - __typename?: "Queries"; - form?: { - __typename?: "FormType"; - id: string; - name: string; - description: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - } | null; -}; - -export type ListingFragment = { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; -}; - -export type ListingOrganizationFragment = { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; -}; - -export type ListingWithFormIdFragment = { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { __typename?: "FormType"; id: string } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; -}; - -export type ListingWithFormFragment = { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; -}; - -export type ListingWithResponsesFragment = { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; - } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; -}; + +export type FormWithAnswersQuery = { __typename?: 'Queries', form?: { __typename?: 'FormType', id: string, name: string, description: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null }; + +export type ListingFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; + +export type ListingOrganizationFragment = { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string }; + +export type ListingWithFormIdFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; + +export type ListingWithFormFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; + +export type ListingWithResponsesFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; export type CreateListingMutationVariables = Exact<{ input: CreateListingInput; }>; -export type CreateListingMutation = { - __typename?: "Mutations"; - createListing?: { - __typename?: "CreateListing"; - ok?: boolean | null; - listing?: { __typename?: "ListingType"; id: string; slug: string } | null; - } | null; -}; + +export type CreateListingMutation = { __typename?: 'Mutations', createListing?: { __typename?: 'CreateListing', ok?: boolean | null, listing?: { __typename?: 'ListingType', id: string, slug: string } | null } | null }; export type UpdateListingMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input?: InputMaybe; }>; -export type UpdateListingMutation = { - __typename?: "Mutations"; - updateListing?: { - __typename?: "UpdateListing"; - ok?: boolean | null; - listing?: { __typename?: "ListingType"; id: string; slug: string } | null; - } | null; -}; + +export type UpdateListingMutation = { __typename?: 'Mutations', updateListing?: { __typename?: 'UpdateListing', ok?: boolean | null, listing?: { __typename?: 'ListingType', id: string, slug: string } | null } | null }; export type DeleteListingMutationVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type DeleteListingMutation = { - __typename?: "Mutations"; - deleteListing?: { __typename?: "DeleteListing"; listingId?: string | null; ok?: boolean | null } | null; -}; + +export type DeleteListingMutation = { __typename?: 'Mutations', deleteListing?: { __typename?: 'DeleteListing', listingId?: string | null, ok?: boolean | null } | null }; export type ListingQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type ListingQuery = { - __typename?: "Queries"; - listing?: { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { __typename?: "FormType"; id: string } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; - } | null; -}; - -export type ListingsQueryVariables = Exact<{ [key: string]: never }>; - -export type ListingsQuery = { - __typename?: "Queries"; - listings?: Array<{ - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; - }> | null; -}; + +export type ListingQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; + +export type ListingsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ListingsQuery = { __typename?: 'Queries', listings?: Array<{ __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }> | null }; export type ListingWithFormQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type ListingWithFormQuery = { - __typename?: "Queries"; - listing?: { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; - } | null; -}; + +export type ListingWithFormQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; export type ListingWithResponsesQueryVariables = Exact<{ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }>; -export type ListingWithResponsesQuery = { - __typename?: "Queries"; - listing?: { - __typename?: "ListingType"; - id: string; - title: string; - slug: string; - description: string; - startDatetime: string; - deadline: string; - endDatetime: string; - applicationUrl?: string | null; - chips: Array; - readMoreUrl?: string | null; - heroImageUrl?: string | null; - form?: { - __typename?: "FormType"; - id: string; - name: string; - questions: Array<{ - __typename?: "QuestionType"; - id: string; - question: string; - description: string; - questionType?: QuestionTypeEnum | null; - mandatory: boolean; - answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; - options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; - }>; - responses?: Array<{ - __typename?: "ResponseType"; - id?: string | null; - respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; - answers: Array<{ - __typename?: "AnswerType"; - id?: string | null; - answer: string; - question: { __typename?: "QuestionType"; id: string }; - }>; - }> | null; - } | null; - organization: { - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }; - } | null; -}; - -export type UserOrganizationsQueryVariables = Exact<{ [key: string]: never }>; - -export type UserOrganizationsQuery = { - __typename?: "Queries"; - user?: { - __typename?: "UserType"; - organizations: Array<{ - __typename?: "OrganizationType"; - id: string; - name: string; - slug: string; - logoUrl?: string | null; - color?: string | null; - description: string; - }>; - } | null; -}; - -export type AdminOrganizationFragment = { - __typename?: "OrganizationType"; - id: string; - name: string; - hrGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; - primaryGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; - events: Array<{ - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - availableSlots?: number | null; - isFull?: boolean | null; - usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; - }>; - listings?: Array<{ __typename?: "ListingType"; id: string; title: string; deadline: string }> | null; -}; - -export type OrgAdminEventFragment = { - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - availableSlots?: number | null; - isFull?: boolean | null; - usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; -}; - -export type OrgAdminListingFragment = { __typename?: "ListingType"; id: string; title: string; deadline: string }; - -export type MembershipFragment = { - __typename?: "MembershipType"; - id: string; - user: { __typename?: "UserType"; firstName: string; lastName: string }; - group?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; -}; + +export type ListingWithResponsesQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; + +export type UserOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserOrganizationsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string }> } | null }; + +export type AdminOrganizationFragment = { __typename?: 'OrganizationType', id: string, name: string, hrGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, primaryGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, events: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }>, listings?: Array<{ __typename?: 'ListingType', id: string, title: string, deadline: string }> | null }; + +export type OrgAdminEventFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }; + +export type OrgAdminListingFragment = { __typename?: 'ListingType', id: string, title: string, deadline: string }; + +export type MembershipFragment = { __typename?: 'MembershipType', id: string, user: { __typename?: 'UserType', firstName: string, lastName: string }, group?: { __typename?: 'ResponsibleGroupType', uuid: string } | null }; export type AdminOrganizationQueryVariables = Exact<{ - orgId: Scalars["ID"]["input"]; + orgId: Scalars['ID']['input']; }>; -export type AdminOrganizationQuery = { - __typename?: "Queries"; - organization?: { - __typename?: "OrganizationType"; - id: string; - name: string; - hrGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; - primaryGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; - events: Array<{ - __typename?: "EventType"; - id: string; - title: string; - startTime: string; - shortDescription?: string | null; - availableSlots?: number | null; - isFull?: boolean | null; - usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; - }>; - listings?: Array<{ __typename?: "ListingType"; id: string; title: string; deadline: string }> | null; - } | null; -}; + +export type AdminOrganizationQuery = { __typename?: 'Queries', organization?: { __typename?: 'OrganizationType', id: string, name: string, hrGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, primaryGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, events: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }>, listings?: Array<{ __typename?: 'ListingType', id: string, title: string, deadline: string }> | null } | null }; export type MembershipsQueryVariables = Exact<{ - organizationId: Scalars["ID"]["input"]; + organizationId: Scalars['ID']['input']; }>; -export type MembershipsQuery = { - __typename?: "Queries"; - memberships?: Array<{ - __typename?: "MembershipType"; - id: string; - user: { __typename?: "UserType"; firstName: string; lastName: string }; - group?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; - }> | null; -}; + +export type MembershipsQuery = { __typename?: 'Queries', memberships?: Array<{ __typename?: 'MembershipType', id: string, user: { __typename?: 'UserType', firstName: string, lastName: string }, group?: { __typename?: 'ResponsibleGroupType', uuid: string } | null }> | null }; export type HasPermissionQueryVariables = Exact<{ - permission: Scalars["String"]["input"]; + permission: Scalars['String']['input']; }>; -export type HasPermissionQuery = { __typename?: "Queries"; hasPermission?: boolean | null }; - -export type UserFragment = { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; -}; - -export type UserWithEventsAndOrgsFragment = { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; - events?: Array<{ __typename?: "EventType"; id: string }> | null; - organizations: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; -}; - -export type UserToEditFragment = { - __typename?: "UserType"; - id: string; - username: string; - firstName: string; - lastName: string; - phoneNumber: string; - allergies?: string | null; - email: string; - graduationYear?: number | null; - firstLogin: boolean; - feideEmail: string; - canUpdateYear?: boolean | null; - yearUpdatedAt?: string | null; -}; - -export type LogoutMutationVariables = Exact<{ [key: string]: never }>; - -export type LogoutMutation = { - __typename?: "Mutations"; - logout?: { __typename?: "Logout"; idToken?: string | null } | null; -}; + +export type HasPermissionQuery = { __typename?: 'Queries', hasPermission?: boolean | null }; + +export type UserFragment = { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean }; + +export type UserWithEventsAndOrgsFragment = { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean, events?: Array<{ __typename?: 'EventType', id: string }> | null, organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string }> }; + +export type UserToEditFragment = { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string, phoneNumber: string, allergies?: string | null, email: string, graduationYear?: number | null, firstLogin: boolean, feideEmail: string, canUpdateYear?: boolean | null, yearUpdatedAt?: string | null }; + +export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; + + +export type LogoutMutation = { __typename?: 'Mutations', logout?: { __typename?: 'Logout', idToken?: string | null } | null }; export type AuthUserMutationVariables = Exact<{ - code: Scalars["String"]["input"]; + code: Scalars['String']['input']; }>; -export type AuthUserMutation = { - __typename?: "Mutations"; - authUser: { - __typename?: "AuthUser"; - user: { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; - }; - }; -}; + +export type AuthUserMutation = { __typename?: 'Mutations', authUser: { __typename?: 'AuthUser', user: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } } }; export type UpdateUserMutationVariables = Exact<{ userData?: InputMaybe; }>; -export type UpdateUserMutation = { - __typename?: "Mutations"; - updateUser?: { - __typename?: "UpdateUser"; - user?: { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; - } | null; - } | null; -}; - -export type UserQueryVariables = Exact<{ [key: string]: never }>; - -export type UserQuery = { - __typename?: "Queries"; - user?: { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; - } | null; -}; - -export type UserWithEventsAndOrgsQueryVariables = Exact<{ [key: string]: never }>; - -export type UserWithEventsAndOrgsQuery = { - __typename?: "Queries"; - user?: { - __typename?: "UserType"; - id: string; - feideEmail: string; - email: string; - username: string; - firstName: string; - lastName: string; - dateJoined: string; - graduationYear?: number | null; - gradeYear?: number | null; - allergies?: string | null; - phoneNumber: string; - firstLogin: boolean; - events?: Array<{ __typename?: "EventType"; id: string }> | null; - organizations: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; - } | null; -}; - -export type UserToEditQueryVariables = Exact<{ [key: string]: never }>; - -export type UserToEditQuery = { - __typename?: "Queries"; - user?: { - __typename?: "UserType"; - id: string; - username: string; - firstName: string; - lastName: string; - phoneNumber: string; - allergies?: string | null; - email: string; - graduationYear?: number | null; - firstLogin: boolean; - feideEmail: string; - canUpdateYear?: boolean | null; - yearUpdatedAt?: string | null; - } | null; -}; - -export type ServerTimeQueryVariables = Exact<{ [key: string]: never }>; - -export type ServerTimeQuery = { __typename?: "Queries"; serverTime?: string | null }; - -export const DocumentFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Document" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, - { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, - { kind: "Field", name: { kind: "Name", value: "year" } }, - { kind: "Field", name: { kind: "Name", value: "webLink" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CabinFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Cabin" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, - { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, - { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const BookingFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Booking" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AllBookingsType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "checkIn" } }, - { kind: "Field", name: { kind: "Name", value: "checkOut" } }, - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminBookingFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminBooking" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminBookingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "checkIn" } }, - { kind: "Field", name: { kind: "Name", value: "checkOut" } }, - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "phone" } }, - { kind: "Field", name: { kind: "Name", value: "receiverEmail" } }, - { kind: "Field", name: { kind: "Name", value: "externalParticipants" } }, - { kind: "Field", name: { kind: "Name", value: "internalParticipants" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "isTentative" } }, - { kind: "Field", name: { kind: "Name", value: "isDeclined" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "extraInfo" } }, - { kind: "Field", name: { kind: "Name", value: "declineReason" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const BookingResponsibleFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "BookingResponsible" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BookingResponsibleType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "active" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "phone" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const BookingSemesterFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "BookingSemester" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, - { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ProductFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const OrderFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventFieldsFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventDetailFieldsFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventDetailFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "endTime" } }, - { kind: "Field", name: { kind: "Name", value: "location" } }, - { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "category" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SignUpWithTicketFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUpWithTicket" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SignUpFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUp" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminEventFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminEvent" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "endTime" } }, - { kind: "Field", name: { kind: "Name", value: "location" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "category" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "image" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { - kind: "Field", - name: { kind: "Name", value: "publisher" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUpWithTicket" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "usersOnWaitingList" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUp" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, - { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUpWithTicket" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUp" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const OptionFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const QuestionFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AnswerFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const QuestionWithAnswerFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answer" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FormWithAnswersFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAnswers" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswer" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answer" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingOrganizationFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingWithFormIdFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithFormId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FormFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Form" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingWithFormFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithForm" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Form" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Form" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const QuestionWithAnswerIdsFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AnswerWithQuestionIdFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ResponseFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FormWithAllResponsesFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingWithResponsesFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const OrgAdminEventFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminEvent" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const OrgAdminListingFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminListing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminOrganizationFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "hrGroup" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "primaryGroup" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "events" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminEvent" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "listings" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminListing" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminEvent" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminListing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const MembershipFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Membership" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "MembershipType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "group" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserWithEventsAndOrgsFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "UserWithEventsAndOrgs" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "User" } }, - { - kind: "Field", - name: { kind: "Name", value: "events" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserToEditFragmentDoc = { - kind: "Document", - definitions: [ - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "UserToEdit" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "canUpdateYear" } }, - { kind: "Field", name: { kind: "Name", value: "yearUpdatedAt" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ArchiveByTypesDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "archiveByTypes" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, - type: { - kind: "NonNullType", - type: { kind: "ListType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "year" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "names" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "archiveByTypes" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "typeDoc" }, - value: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "year" }, - value: { kind: "Variable", name: { kind: "Name", value: "year" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "names" }, - value: { kind: "Variable", name: { kind: "Name", value: "names" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Document" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, - { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, - { kind: "Field", name: { kind: "Name", value: "year" } }, - { kind: "Field", name: { kind: "Name", value: "webLink" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FeaturedArchiveDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "featuredArchive" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "featuredArchive" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Document" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, - { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, - { kind: "Field", name: { kind: "Name", value: "year" } }, - { kind: "Field", name: { kind: "Name", value: "webLink" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AvailableYearsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "availableYears" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "availableYears" } }], - }, - }, - ], -} as unknown as DocumentNode; -export const DocumentsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "documents" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, - type: { - kind: "NonNullType", - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "year" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "names" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "archiveByTypes" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "typeDoc" }, - value: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "year" }, - value: { kind: "Variable", name: { kind: "Name", value: "year" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "names" }, - value: { kind: "Variable", name: { kind: "Name", value: "names" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "featuredArchive" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "availableYears" } }, - { - kind: "Field", - name: { kind: "Name", value: "hasPermission" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "permission" }, - value: { kind: "StringValue", value: "archive.view_archivedocument", block: false }, - }, - ], - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Document" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, - { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, - { kind: "Field", name: { kind: "Name", value: "year" } }, - { kind: "Field", name: { kind: "Name", value: "webLink" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CreateBookingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "createBooking" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "bookingData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BookingInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createBooking" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "bookingData" }, - value: { kind: "Variable", name: { kind: "Name", value: "bookingData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ConfirmBookingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "confirmBooking" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateBooking" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "bookingData" }, - value: { - kind: "ObjectValue", - fields: [ - { - kind: "ObjectField", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "ObjectField", - name: { kind: "Name", value: "isTentative" }, - value: { kind: "BooleanValue", value: false }, - }, - ], - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const DeclineBookingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "declineBooking" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "declineReason" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateBooking" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "bookingData" }, - value: { - kind: "ObjectValue", - fields: [ - { - kind: "ObjectField", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "ObjectField", - name: { kind: "Name", value: "isTentative" }, - value: { kind: "BooleanValue", value: false }, - }, - { - kind: "ObjectField", - name: { kind: "Name", value: "isDeclined" }, - value: { kind: "BooleanValue", value: true }, - }, - { - kind: "ObjectField", - name: { kind: "Name", value: "declineReason" }, - value: { kind: "Variable", name: { kind: "Name", value: "declineReason" } }, - }, - ], - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SendEmailDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "sendEmail" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "emailInput" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "EmailInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "sendEmail" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "emailInput" }, - value: { kind: "Variable", name: { kind: "Name", value: "emailInput" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateCabinDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateCabin" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "cabinData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCabinInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateCabin" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "cabinData" }, - value: { kind: "Variable", name: { kind: "Name", value: "cabinData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "cabin" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Cabin" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, - { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, - { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateBookingSemesterDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateBookingSemester" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "semesterData" } }, - type: { - kind: "NonNullType", - type: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterInput" } }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateBookingSemester" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "semesterData" }, - value: { kind: "Variable", name: { kind: "Name", value: "semesterData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "bookingSemester" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingSemester" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "BookingSemester" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, - { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CabinsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Cabin" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, - { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, - { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AllBookingsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "allBookings" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "allBookings" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Booking" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Booking" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AllBookingsType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "checkIn" } }, - { kind: "Field", name: { kind: "Name", value: "checkOut" } }, - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminAllBookingsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "adminAllBookings" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "after" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "adminAllBookings" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "after" }, - value: { kind: "Variable", name: { kind: "Name", value: "after" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminBooking" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminBooking" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminBookingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "checkIn" } }, - { kind: "Field", name: { kind: "Name", value: "checkOut" } }, - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "phone" } }, - { kind: "Field", name: { kind: "Name", value: "receiverEmail" } }, - { kind: "Field", name: { kind: "Name", value: "externalParticipants" } }, - { kind: "Field", name: { kind: "Name", value: "internalParticipants" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "isTentative" } }, - { kind: "Field", name: { kind: "Name", value: "isDeclined" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "extraInfo" } }, - { kind: "Field", name: { kind: "Name", value: "declineReason" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ActiveBookingResponsibleDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "activeBookingResponsible" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "activeBookingResponsible" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingResponsible" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "BookingResponsible" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BookingResponsibleType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "active" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "phone" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CabinsAndResponsiblesDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "cabinsAndResponsibles" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "cabins" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "activeBookingResponsible" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Cabin" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, - { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, - { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const BookingSemesterDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "bookingSemester" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "bookingSemester" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingSemester" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "BookingSemester" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, - { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, - { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, - { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const InitiateOrderDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "initiateOrder" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "productId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "quantity" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "fallbackRedirect" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "initiateOrder" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "productId" }, - value: { kind: "Variable", name: { kind: "Name", value: "productId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "quantity" }, - value: { kind: "Variable", name: { kind: "Name", value: "quantity" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "fallbackRedirect" }, - value: { kind: "Variable", name: { kind: "Name", value: "fallbackRedirect" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "redirect" } }, - { kind: "Field", name: { kind: "Name", value: "orderId" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AttemptCapturePaymentDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "attemptCapturePayment" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "attemptCapturePayment" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "orderId" }, - value: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "status" } }, - { - kind: "Field", - name: { kind: "Name", value: "order" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const DeliveredProductDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "deliveredProduct" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "deliveredProduct" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "orderId" }, - value: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "order" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ProductDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "product" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "productId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "product" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "productId" }, - value: { kind: "Variable", name: { kind: "Name", value: "productId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ProductsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "products" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "products" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserOrdersDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "userOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "userOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AllUserOrdersDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "allUserOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "allUserOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AllShopOrdersDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "allShopOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "allShopOrders" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Product" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, - { kind: "Field", name: { kind: "Name", value: "shopItem" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Order" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "quantity" } }, - { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, - { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, - { kind: "Field", name: { kind: "Name", value: "timestamp" } }, - { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CreateEventDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "createEvent" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateEventInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createEvent" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventData" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateEventDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateEvent" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateEventInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateEvent" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "eventData" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventDetailFields" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventDetailFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "endTime" } }, - { kind: "Field", name: { kind: "Name", value: "location" } }, - { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "category" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventSignUpDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "eventSignUp" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "extraInformation" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "eventSignUp" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventId" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "data" }, - value: { - kind: "ObjectValue", - fields: [ - { - kind: "ObjectField", - name: { kind: "Name", value: "extraInformation" }, - value: { kind: "Variable", name: { kind: "Name", value: "extraInformation" } }, - }, - ], - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { - kind: "Field", - name: { kind: "Name", value: "event" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventSignOffDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "eventSignOff" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "eventSignOff" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventId" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { - kind: "Field", - name: { kind: "Name", value: "event" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminEventSignOffDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "adminEventSignOff" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "userId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "adminEventSignOff" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventId" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "userId" }, - value: { kind: "Variable", name: { kind: "Name", value: "userId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SendEventMailsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "sendEventMails" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "receiverEmails" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "content" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "subject" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "sendEventMails" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventId" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "receiverEmails" }, - value: { kind: "Variable", name: { kind: "Name", value: "receiverEmails" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "content" }, - value: { kind: "Variable", name: { kind: "Name", value: "content" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "subject" }, - value: { kind: "Variable", name: { kind: "Name", value: "subject" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "events" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "organization" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "category" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "startTime" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "DateTime" } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "endTime" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "DateTime" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "allEvents" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "organization" }, - value: { kind: "Variable", name: { kind: "Name", value: "organization" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "category" }, - value: { kind: "Variable", name: { kind: "Name", value: "category" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "startTime" }, - value: { kind: "Variable", name: { kind: "Name", value: "startTime" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "endTime" }, - value: { kind: "Variable", name: { kind: "Name", value: "endTime" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "defaultEvents" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "hasPermission" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "permission" }, - value: { kind: "StringValue", value: "events.add_event", block: false }, - }, - ], - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventDetailsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "eventDetails" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventDetailFields" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "organizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "EventDetailFields" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "endTime" } }, - { kind: "Field", name: { kind: "Name", value: "location" } }, - { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "category" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AllCategoriesDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "allCategories" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "allCategories" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventFilteredOrganizationsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "eventFilteredOrganizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "eventFilteredOrganizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { - kind: "Field", - name: { kind: "Name", value: "children" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminEventDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "adminEvent" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminEvent" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUpWithTicket" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "SignUp" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "userEmail" } }, - { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, - { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminEvent" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "endTime" } }, - { kind: "Field", name: { kind: "Name", value: "location" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "category" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "image" } }, - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { - kind: "Field", - name: { kind: "Name", value: "publisher" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, - { kind: "Field", name: { kind: "Name", value: "price" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUpWithTicket" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "usersOnWaitingList" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUp" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "userAttendance" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, - { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, - { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, - { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, - { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, - { - kind: "Field", - name: { kind: "Name", value: "product" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventSignUpsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "eventSignUps" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "event" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "userEmail" } }], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AttendeeReportDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "attendeeReport" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "attendeeReport" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventId" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "fields" }, - value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "filetype" }, - value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AttendeeReportOrgDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "attendeeReportOrg" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "attendeeReportOrg" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "orgId" }, - value: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "fields" }, - value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "filetype" }, - value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AttendeeReportsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "attendeeReports" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "eventIds" } }, - type: { - kind: "NonNullType", - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "attendeeReports" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "eventIds" }, - value: { kind: "Variable", name: { kind: "Name", value: "eventIds" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "fields" }, - value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "filetype" }, - value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const EventUserOrganizationsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "eventUserOrganizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "organizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CreateFormDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "createForm" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateFormInput" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "listingId" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createForm" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "formData" }, - value: { kind: "Variable", name: { kind: "Name", value: "formData" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "listingId" }, - value: { kind: "Variable", name: { kind: "Name", value: "listingId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateFormDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateForm" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formData" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BaseFormInput" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateForm" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "formData" }, - value: { kind: "Variable", name: { kind: "Name", value: "formData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CreateQuestionDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "createQuestion" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, - type: { - kind: "NonNullType", - type: { kind: "NamedType", name: { kind: "Name", value: "CreateQuestionInput" } }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createQuestion" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "formId" }, - value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "questionData" }, - value: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateQuestionDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateQuestion" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, - type: { - kind: "NonNullType", - type: { kind: "NamedType", name: { kind: "Name", value: "BaseQuestionInput" } }, - }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "optionData" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "OptionInput" } } }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createUpdateAndDeleteOptions" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "questionId" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "optionData" }, - value: { kind: "Variable", name: { kind: "Name", value: "optionData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "updateQuestion" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "questionData" }, - value: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const DeleteQuestionDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "deleteQuestion" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "deleteQuestion" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "deletedId" } }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const SubmitAnswersDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "submitAnswers" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "answersData" } }, - type: { - kind: "ListType", - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "AnswerInput" } } }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "submitAnswers" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "formId" }, - value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "answersData" }, - value: { kind: "Variable", name: { kind: "Name", value: "answersData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "ok" } }, - { kind: "Field", name: { kind: "Name", value: "message" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FormWithAllResponsesDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "formWithAllResponses" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "form" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "formId" }, - value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FormWithAnswersDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "formWithAnswers" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "form" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "formId" }, - value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAnswers" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answer" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAnswers" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswer" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const CreateListingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "createListing" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, - type: { - kind: "NonNullType", - type: { kind: "NamedType", name: { kind: "Name", value: "CreateListingInput" } }, - }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "createListing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "listingData" }, - value: { kind: "Variable", name: { kind: "Name", value: "input" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listing" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateListingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateListing" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "BaseListingInput" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateListing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - { - kind: "Argument", - name: { kind: "Name", value: "listingData" }, - value: { kind: "Variable", name: { kind: "Name", value: "input" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listing" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - ], - }, - }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const DeleteListingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "deleteListing" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "deleteListing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "listingId" } }, - { kind: "Field", name: { kind: "Name", value: "ok" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "listing" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithFormId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithFormId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "listings" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listings" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingWithFormDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "listingWithForm" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithForm" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Form" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithForm" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Form" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ListingWithResponsesDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "listingWithResponses" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "listing" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "id" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithResponses" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Listing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, - { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, - { kind: "Field", name: { kind: "Name", value: "chips" } }, - { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, - { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Option" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Question" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "question" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - { kind: "Field", name: { kind: "Name", value: "questionType" } }, - { kind: "Field", name: { kind: "Name", value: "mandatory" } }, - { - kind: "Field", - name: { kind: "Name", value: "options" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "QuestionWithAnswerIds" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Answer" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "answer" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AnswerWithQuestionId" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, - { - kind: "Field", - name: { kind: "Name", value: "question" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "Response" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "respondent" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "answers" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "FormWithAllResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "questions" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "responses" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingWithResponses" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, - { - kind: "Field", - name: { kind: "Name", value: "form" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserOrganizationsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "userOrganizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "organizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "ListingOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { kind: "Field", name: { kind: "Name", value: "slug" } }, - { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, - { kind: "Field", name: { kind: "Name", value: "color" } }, - { kind: "Field", name: { kind: "Name", value: "description" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AdminOrganizationDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "adminOrganization" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "organization" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "id" }, - value: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminOrganization" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminEvent" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "startTime" } }, - { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, - { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, - { kind: "Field", name: { kind: "Name", value: "isFull" } }, - { - kind: "Field", - name: { kind: "Name", value: "usersAttending" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "OrgAdminListing" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "title" } }, - { kind: "Field", name: { kind: "Name", value: "deadline" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "AdminOrganization" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - { - kind: "Field", - name: { kind: "Name", value: "hrGroup" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "primaryGroup" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "events" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminEvent" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "listings" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminListing" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const MembershipsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "memberships" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "memberships" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "organizationId" }, - value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - ], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "group" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const HasPermissionDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "hasPermission" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "permission" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "hasPermission" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "permission" }, - value: { kind: "Variable", name: { kind: "Name", value: "permission" } }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const LogoutDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "logout" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "logout" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "idToken" } }], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const AuthUserDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "authUser" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "code" } }, - type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "authUser" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "code" }, - value: { kind: "Variable", name: { kind: "Name", value: "code" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UpdateUserDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "mutation", - name: { kind: "Name", value: "updateUser" }, - variableDefinitions: [ - { - kind: "VariableDefinition", - variable: { kind: "Variable", name: { kind: "Name", value: "userData" } }, - type: { kind: "NamedType", name: { kind: "Name", value: "UserInput" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "updateUser" }, - arguments: [ - { - kind: "Argument", - name: { kind: "Name", value: "userData" }, - value: { kind: "Variable", name: { kind: "Name", value: "userData" } }, - }, - ], - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserWithEventsAndOrgsDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "userWithEventsAndOrgs" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserWithEventsAndOrgs" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "User" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "UserWithEventsAndOrgs" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "FragmentSpread", name: { kind: "Name", value: "User" } }, - { - kind: "Field", - name: { kind: "Name", value: "events" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], - }, - }, - { - kind: "Field", - name: { kind: "Name", value: "organizations" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "name" } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const UserToEditDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "userToEdit" }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { - kind: "Field", - name: { kind: "Name", value: "user" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserToEdit" } }], - }, - }, - ], - }, - }, - { - kind: "FragmentDefinition", - name: { kind: "Name", value: "UserToEdit" }, - typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, - selectionSet: { - kind: "SelectionSet", - selections: [ - { kind: "Field", name: { kind: "Name", value: "id" } }, - { kind: "Field", name: { kind: "Name", value: "username" } }, - { kind: "Field", name: { kind: "Name", value: "firstName" } }, - { kind: "Field", name: { kind: "Name", value: "lastName" } }, - { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, - { kind: "Field", name: { kind: "Name", value: "allergies" } }, - { kind: "Field", name: { kind: "Name", value: "email" } }, - { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, - { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, - { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, - { kind: "Field", name: { kind: "Name", value: "canUpdateYear" } }, - { kind: "Field", name: { kind: "Name", value: "yearUpdatedAt" } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const ServerTimeDocument = { - kind: "Document", - definitions: [ - { - kind: "OperationDefinition", - operation: "query", - name: { kind: "Name", value: "serverTime" }, - selectionSet: { - kind: "SelectionSet", - selections: [{ kind: "Field", name: { kind: "Name", value: "serverTime" } }], - }, - }, - ], -} as unknown as DocumentNode; + +export type UpdateUserMutation = { __typename?: 'Mutations', updateUser?: { __typename?: 'UpdateUser', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } | null } | null }; + +export type UserQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } | null }; + +export type UserWithEventsAndOrgsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserWithEventsAndOrgsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean, events?: Array<{ __typename?: 'EventType', id: string }> | null, organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string }> } | null }; + +export type UserToEditQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserToEditQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string, phoneNumber: string, allergies?: string | null, email: string, graduationYear?: number | null, firstLogin: boolean, feideEmail: string, canUpdateYear?: boolean | null, yearUpdatedAt?: string | null } | null }; + +export type ServerTimeQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ServerTimeQuery = { __typename?: 'Queries', serverTime?: string | null }; + +export const DocumentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; +export const CabinFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; +export const BookingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Booking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AllBookingsType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const AdminBookingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminBooking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AdminBookingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"receiverEmail"}},{"kind":"Field","name":{"kind":"Name","value":"externalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"internalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"isTentative"}},{"kind":"Field","name":{"kind":"Name","value":"isDeclined"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extraInfo"}},{"kind":"Field","name":{"kind":"Name","value":"declineReason"}}]}}]} as unknown as DocumentNode; +export const BookingResponsibleFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingResponsible"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BookingResponsibleType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"active"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}}]}}]} as unknown as DocumentNode; +export const BookingSemesterFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; +export const ProductFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; +export const OrderFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; +export const EventFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; +export const EventDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; +export const SignUpWithTicketFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}}]} as unknown as DocumentNode; +export const SignUpFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}}]} as unknown as DocumentNode; +export const AdminEventFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"publisher"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUpWithTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usersOnWaitingList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}}]} as unknown as DocumentNode; +export const OptionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; +export const QuestionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; +export const AnswerFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; +export const QuestionWithAnswerFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; +export const FormWithAnswersFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAnswers"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}}]} as unknown as DocumentNode; +export const ListingOrganizationFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; +export const ListingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; +export const ListingWithFormIdFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithFormId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]} as unknown as DocumentNode; +export const FormFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}}]} as unknown as DocumentNode; +export const ListingWithFormFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithForm"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Form"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}}]} as unknown as DocumentNode; +export const QuestionWithAnswerIdsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}}]} as unknown as DocumentNode; +export const AnswerWithQuestionIdFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; +export const ResponseFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const FormWithAllResponsesFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}}]} as unknown as DocumentNode; +export const ListingWithResponsesFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; +export const OrgAdminEventFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const OrgAdminListingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}}]} as unknown as DocumentNode; +export const AdminOrganizationFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hrGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminEvent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminListing"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}}]} as unknown as DocumentNode; +export const MembershipFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Membership"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MembershipType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]} as unknown as DocumentNode; +export const UserFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; +export const UserWithEventsAndOrgsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserWithEventsAndOrgs"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; +export const UserToEditFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserToEdit"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateYear"}},{"kind":"Field","name":{"kind":"Name","value":"yearUpdatedAt"}}]}}]} as unknown as DocumentNode; +export const ArchiveByTypesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"archiveByTypes"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"names"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveByTypes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"typeDoc"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}}},{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}},{"kind":"Argument","name":{"kind":"Name","value":"names"},"value":{"kind":"Variable","name":{"kind":"Name","value":"names"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; +export const FeaturedArchiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; +export const AvailableYearsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"availableYears"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableYears"}}]}}]} as unknown as DocumentNode; +export const DocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"documents"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"names"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveByTypes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"typeDoc"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}}},{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}},{"kind":"Argument","name":{"kind":"Name","value":"names"},"value":{"kind":"Variable","name":{"kind":"Name","value":"names"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"StringValue","value":"archive.view_archivedocument","block":false}}]}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; +export const CreateBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"bookingData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BookingInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"bookingData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const ConfirmBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"confirmBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"isTentative"},"value":{"kind":"BooleanValue","value":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const DeclineBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"declineBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"declineReason"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"isTentative"},"value":{"kind":"BooleanValue","value":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"isDeclined"},"value":{"kind":"BooleanValue","value":true}},{"kind":"ObjectField","name":{"kind":"Name","value":"declineReason"},"value":{"kind":"Variable","name":{"kind":"Name","value":"declineReason"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const SendEmailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"sendEmail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emailInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EmailInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendEmail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"emailInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emailInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateCabinDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateCabin"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cabinData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCabinInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCabin"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cabinData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cabinData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabin"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; +export const UpdateBookingSemesterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateBookingSemester"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"semesterData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBookingSemester"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"semesterData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"semesterData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingSemester"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; +export const CabinsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; +export const AllBookingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allBookings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBookings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Booking"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Booking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AllBookingsType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const AdminAllBookingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminAllBookings"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminAllBookings"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminBooking"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminBooking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AdminBookingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"receiverEmail"}},{"kind":"Field","name":{"kind":"Name","value":"externalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"internalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"isTentative"}},{"kind":"Field","name":{"kind":"Name","value":"isDeclined"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extraInfo"}},{"kind":"Field","name":{"kind":"Name","value":"declineReason"}}]}}]} as unknown as DocumentNode; +export const ActiveBookingResponsibleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingResponsible"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingResponsible"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BookingResponsibleType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"active"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}}]}}]} as unknown as DocumentNode; +export const CabinsAndResponsiblesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"cabinsAndResponsibles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; +export const BookingSemesterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingSemester"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; +export const InitiateOrderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"initiateOrder"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fallbackRedirect"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"initiateOrder"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"productId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productId"}}},{"kind":"Argument","name":{"kind":"Name","value":"quantity"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}}},{"kind":"Argument","name":{"kind":"Name","value":"fallbackRedirect"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fallbackRedirect"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"redirect"}},{"kind":"Field","name":{"kind":"Name","value":"orderId"}}]}}]}}]} as unknown as DocumentNode; +export const AttemptCapturePaymentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"attemptCapturePayment"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attemptCapturePayment"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const DeliveredProductDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deliveredProduct"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const ProductDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"product"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"product"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"productId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; +export const ProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]}}]} as unknown as DocumentNode; +export const UserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const AllUserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const AllShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allShopOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allShopOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const CreateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; +export const EventSignUpDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignUp"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignUp"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extraInformation"},"value":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const EventSignOffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignOff"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignOff"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const AdminEventSignOffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"adminEventSignOff"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminEventSignOff"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"userId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +export const SendEventMailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"sendEventMails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"receiverEmails"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"content"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"subject"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendEventMails"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"receiverEmails"},"value":{"kind":"Variable","name":{"kind":"Name","value":"receiverEmails"}}},{"kind":"Argument","name":{"kind":"Name","value":"content"},"value":{"kind":"Variable","name":{"kind":"Name","value":"content"}}},{"kind":"Argument","name":{"kind":"Name","value":"subject"},"value":{"kind":"Variable","name":{"kind":"Name","value":"subject"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const EventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"events"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organization"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"category"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allEvents"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organization"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organization"}}},{"kind":"Argument","name":{"kind":"Name","value":"category"},"value":{"kind":"Variable","name":{"kind":"Name","value":"category"}}},{"kind":"Argument","name":{"kind":"Name","value":"startTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}}},{"kind":"Argument","name":{"kind":"Name","value":"endTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"defaultEvents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"StringValue","value":"events.add_event","block":false}}]}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; +export const EventDetailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventDetails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; +export const AllCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const EventFilteredOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventFilteredOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventFilteredOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"children"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const AdminEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminEvent"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"publisher"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUpWithTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usersOnWaitingList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const EventSignUpsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventSignUps"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}}]}}]}}]} as unknown as DocumentNode; +export const AttendeeReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; +export const AttendeeReportOrgDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReportOrg"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReportOrg"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orgId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; +export const AttendeeReportsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReports"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReports"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; +export const EventUserOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventUserOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +export const CreateFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateFormInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"listingId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createForm"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formData"}}},{"kind":"Argument","name":{"kind":"Name","value":"listingId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"listingId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseFormInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateForm"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"formData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; +export const CreateQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateQuestionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}},{"kind":"Argument","name":{"kind":"Name","value":"questionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseQuestionInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"optionData"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OptionInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createUpdateAndDeleteOptions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"questionId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"optionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"optionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updateQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"questionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const DeleteQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deletedId"}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const SubmitAnswersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"submitAnswers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"answersData"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"submitAnswers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}},{"kind":"Argument","name":{"kind":"Name","value":"answersData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"answersData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode; +export const FormWithAllResponsesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"formWithAllResponses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; +export const FormWithAnswersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"formWithAnswers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAnswers"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAnswers"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswer"}}]}}]}}]} as unknown as DocumentNode; +export const CreateListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateListingInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"listingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseListingInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"listingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const DeleteListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listingId"}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; +export const ListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithFormId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithFormId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const ListingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]} as unknown as DocumentNode; +export const ListingWithFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listingWithForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithForm"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithForm"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Form"}}]}}]}}]} as unknown as DocumentNode; +export const ListingWithResponsesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listingWithResponses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}}]} as unknown as DocumentNode; +export const UserOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; +export const AdminOrganizationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminOrganization"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hrGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminEvent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminListing"}}]}}]}}]} as unknown as DocumentNode; +export const MembershipsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"memberships"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"memberships"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organizationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]}}]} as unknown as DocumentNode; +export const HasPermissionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"hasPermission"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"permission"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"Variable","name":{"kind":"Name","value":"permission"}}}]}]}}]} as unknown as DocumentNode; +export const LogoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"logout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"logout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"idToken"}}]}}]}}]} as unknown as DocumentNode; +export const AuthUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"authUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"code"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"code"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; +export const UpdateUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userData"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UserInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"userData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; +export const UserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; +export const UserWithEventsAndOrgsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userWithEventsAndOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserWithEventsAndOrgs"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserWithEventsAndOrgs"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const UserToEditDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userToEdit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserToEdit"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserToEdit"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateYear"}},{"kind":"Field","name":{"kind":"Name","value":"yearUpdatedAt"}}]}}]} as unknown as DocumentNode; +export const ServerTimeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"serverTime"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverTime"}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/frontend/src/graphql/ecommerce/queries.graphql b/frontend/src/graphql/ecommerce/queries.graphql index 0c5f5acb1..3379eb558 100644 --- a/frontend/src/graphql/ecommerce/queries.graphql +++ b/frontend/src/graphql/ecommerce/queries.graphql @@ -27,8 +27,8 @@ query allUserOrders { } } -query allShopOrders { - allShopOrders { +query allShopOrders($limit: Int, $offset: Int) { + allShopOrders(limit: $limit, offset: $offset) { ...Order } } \ No newline at end of file diff --git a/frontend/src/pages/orgs/[orgId]/index.tsx b/frontend/src/pages/orgs/[orgId]/index.tsx index edf0e5a1d..54b35d6db 100644 --- a/frontend/src/pages/orgs/[orgId]/index.tsx +++ b/frontend/src/pages/orgs/[orgId]/index.tsx @@ -35,7 +35,7 @@ const OrganizationDetailPage: NextPageWithLayout = () => { {data?.organization && ( - + {activeTab == 0 && data.organization.events && } {activeTab == 1 && data.organization.listings && } {activeTab == 2 && data.organization && } From 570914bf80678516fa5954b3218d4b7c921f0aa9 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Thu, 17 Oct 2024 18:05:49 +0200 Subject: [PATCH 02/11] Added pagination to Janus' shop-order table --- backend/apps/ecommerce/resolvers.py | 4 +- backend/apps/ecommerce/schema.py | 2 +- backend/schema.json | 41 ++++++++ .../components/pages/organization/OrgShop.tsx | 95 +++++++++++++------ .../src/components/pages/orgs/ShopSale.tsx | 8 +- frontend/src/generated/graphql.tsx | 13 ++- frontend/src/gql/graphql.ts | 6 ++ frontend/src/gql/index.ts | 2 +- frontend/src/pages/orgs/[orgId]/index.tsx | 17 ++-- 9 files changed, 142 insertions(+), 46 deletions(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 75b1ced11..62156aba1 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -38,9 +38,9 @@ def resolve_user_orders(self, info): def resolve_all_user_orders(self, info): return Order.objects.all() - def resolve_all_shop_orders(self, limit, offset, info): + def resolve_all_shop_orders(self, info, limit, offset): # Apply pagination if limit and offset are provided - orders = Order.objects.filter(product__shop_item=True) + orders = Order.objects.filter(product__shop_item=True).order_by('delivered_product', 'payment_status', 'timestamp') if offset is not None: orders = orders[offset:] if limit is not None: diff --git a/backend/apps/ecommerce/schema.py b/backend/apps/ecommerce/schema.py index 209cc8de7..b9f9c6db7 100644 --- a/backend/apps/ecommerce/schema.py +++ b/backend/apps/ecommerce/schema.py @@ -19,7 +19,7 @@ class EcommerceQueries(graphene.ObjectType, EcommerceResolvers): order = graphene.Field(OrderType, order_id=graphene.ID(required=True)) user_orders = graphene.List(NonNull(OrderType)) all_user_orders = graphene.List(NonNull(OrderType)) - all_shop_orders = graphene.List(graphene.NonNull(OrderType), limit=graphene.Int(), offset=graphene.Int()), + all_shop_orders = graphene.List(graphene.NonNull(OrderType), limit=graphene.Int(), offset=graphene.Int()) orders_by_status = graphene.Field( OrdersByStatusType, product_id=graphene.ID(required=True), status=graphene.String(required=True) diff --git a/backend/schema.json b/backend/schema.json index 155908987..b7d4e813e 100644 --- a/backend/schema.json +++ b/backend/schema.json @@ -300,6 +300,47 @@ } } }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "offset", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "allShopOrders", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OrderType", + "ofType": null + } + } + } + }, { "args": [ { diff --git a/frontend/src/components/pages/organization/OrgShop.tsx b/frontend/src/components/pages/organization/OrgShop.tsx index d6195c861..86b2989db 100644 --- a/frontend/src/components/pages/organization/OrgShop.tsx +++ b/frontend/src/components/pages/organization/OrgShop.tsx @@ -1,9 +1,11 @@ import { useQuery } from "@apollo/client"; -import { Box, Grid, Stack, Typography } from "@mui/material"; +import { Box, Grid, Stack, Typography, Button} from "@mui/material"; +import {KeyboardArrowLeft, KeyboardArrowRight} from '@mui/icons-material'; +import { useTheme } from '@mui/material/styles'; import { AdminOrganizationFragment, AllShopOrdersDocument } from "@/generated/graphql"; - import { ShopSale } from "../orgs/ShopSale"; +import React,{ useState } from 'react'; type Props = { organization: AdminOrganizationFragment; @@ -11,18 +13,17 @@ type Props = { export const OrgProducts: React.FC = ({ organization }) => { const limit = 5 - const page = 1//[page, setPage] = useState(0); + const [page, setPage] = useState(0); - const { data, error } = useQuery(AllShopOrdersDocument, { + const { data, error, loading } = useQuery(AllShopOrdersDocument, { variables: { - limit: limit, // The number of orders you want to fetch + limit: limit + 1, // The number of orders you want to fetch offset: page * limit, // The starting index (e.g., 0 for the first set of results) }, }); if (error) return

Error

; - console.log(data); if (organization.name.toLowerCase() !== "janus linjeforening") { return (

@@ -30,13 +31,46 @@ export const OrgProducts: React.FC = ({ organization }) => {

); } - if (data?.allShopOrders?.length === 0) { + if (data?.allShopOrders!.length === 0) { return

Ingen ordre

; } - return ( - <> - - + // Pagination button handlers + const nextPage = () => setPage(page + 1); + const prevPage = () => setPage(page > 0 ? page - 1 : 0); + const theme = useTheme(); + // Check if there is a next page (if we received less than `limit` items) + const hasNextPage = (data?.allShopOrders && data.allShopOrders.length < limit) ?? false; //Have to check if the data exists before I check that the data has a certain length. This gave me an error: data?.allShopOrders?.length < limit; + + return ( + <> + + + + + + {page + 1} + + + + Navn på kunde @@ -48,31 +82,32 @@ export const OrgProducts: React.FC = ({ organization }) => { Betalt status - + Mulige handlinger Har vi levert varen - - {data?.allShopOrders?.map((order) => { - return ( - - - - - - ); - })} - + {/*If not loading and data is loaded -> Render grid element*/} + {(!loading && data) && + {data?.allShopOrders?.slice(0, limit).map((order) => { + return ( + + + + + + ); + })} + } ); }; diff --git a/frontend/src/components/pages/orgs/ShopSale.tsx b/frontend/src/components/pages/orgs/ShopSale.tsx index 401b4cb54..8c00d67f7 100644 --- a/frontend/src/components/pages/orgs/ShopSale.tsx +++ b/frontend/src/components/pages/orgs/ShopSale.tsx @@ -23,8 +23,8 @@ export const ShopSale: React.FC = ({ name, product_name, quantity, has_pa deliverProduct({ variables: { orderId: order_id } }); } return ( - - + + {name} @@ -36,7 +36,7 @@ export const ShopSale: React.FC = ({ name, product_name, quantity, has_pa Betalt: {has_paid ? "Ja" : "Nei"} - + @@ -69,7 +69,7 @@ export const ShopSale: React.FC = ({ name, product_name, quantity, has_pa - Varen er {delivered ? "levert" : "ikke levert"} + {delivered ? "Levert" : "Ikke levert"} ); diff --git a/frontend/src/generated/graphql.tsx b/frontend/src/generated/graphql.tsx index cd07b3415..e2322a43b 100644 --- a/frontend/src/generated/graphql.tsx +++ b/frontend/src/generated/graphql.tsx @@ -1071,6 +1071,12 @@ export type QueriesAllOrganizationsArgs = { }; +export type QueriesAllShopOrdersArgs = { + limit?: InputMaybe; + offset?: InputMaybe; +}; + + export type QueriesArchiveByTypesArgs = { names?: InputMaybe; typeDoc: Array>; @@ -1648,7 +1654,10 @@ export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never; }>; export type AllUserOrdersQuery = { __typename?: 'Queries', allUserOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; -export type AllShopOrdersQueryVariables = Exact<{ [key: string]: never; }>; +export type AllShopOrdersQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; +}>; export type AllShopOrdersQuery = { __typename?: 'Queries', allShopOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; @@ -2061,7 +2070,7 @@ export const ProductDocument = {"kind":"Document","definitions":[{"kind":"Operat export const ProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]}}]} as unknown as DocumentNode; export const UserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; export const AllUserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const AllShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allShopOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allShopOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const AllShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allShopOrders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allShopOrders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; export const CreateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; export const UpdateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; export const EventSignUpDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignUp"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignUp"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extraInformation"},"value":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index c7c21c610..2c26c26e1 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -1087,6 +1087,12 @@ export type QueriesAllOrganizationsArgs = { }; +export type QueriesAllShopOrdersArgs = { + limit: InputMaybe; + offset: InputMaybe; +}; + + export type QueriesArchiveByTypesArgs = { names: InputMaybe; typeDoc: Array>; diff --git a/frontend/src/gql/index.ts b/frontend/src/gql/index.ts index 8c65c5891..af7839936 100644 --- a/frontend/src/gql/index.ts +++ b/frontend/src/gql/index.ts @@ -1 +1 @@ -export * from "./gql"; +export * from "./gql"; \ No newline at end of file diff --git a/frontend/src/pages/orgs/[orgId]/index.tsx b/frontend/src/pages/orgs/[orgId]/index.tsx index 54b35d6db..21dfdd1a0 100644 --- a/frontend/src/pages/orgs/[orgId]/index.tsx +++ b/frontend/src/pages/orgs/[orgId]/index.tsx @@ -35,12 +35,17 @@ const OrganizationDetailPage: NextPageWithLayout = () => { {data?.organization && ( - - {activeTab == 0 && data.organization.events && } - {activeTab == 1 && data.organization.listings && } - {activeTab == 2 && data.organization && } - {activeTab == 3 && data.organization && } - + <> + + {activeTab == 0 && data.organization.events && } + {activeTab == 1 && data.organization.listings && } + {activeTab == 2 && data.organization && } + + {/*Separate stack because of different spacing*/} + + {activeTab == 3 && data.organization && } + + )} From 31a364d7cf3a824434c2b2ed861f5c9cbff1bf08 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 16:56:47 +0200 Subject: [PATCH 03/11] Added second stepper at the bottom of the table. Added a hard cap of 300 orders per query, changed the name of the query --- backend/apps/ecommerce/resolvers.py | 13 ++-- backend/apps/ecommerce/schema.py | 2 +- backend/schema.json | 2 +- .../components/pages/organization/OrgShop.tsx | 75 ++++++++----------- .../components/pages/orgs/TableStepper.tsx | 39 ++++++++++ frontend/src/generated/graphql.tsx | 20 ++--- frontend/src/gql/graphql.ts | 14 ++-- .../src/graphql/ecommerce/queries.graphql | 4 +- 8 files changed, 99 insertions(+), 70 deletions(-) create mode 100644 frontend/src/components/pages/orgs/TableStepper.tsx diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 62156aba1..5e0a47780 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -38,13 +38,16 @@ def resolve_user_orders(self, info): def resolve_all_user_orders(self, info): return Order.objects.all() - def resolve_all_shop_orders(self, info, limit, offset): + def resolve_paginated_shop_orders(self, info, limit, offset): # Apply pagination if limit and offset are provided orders = Order.objects.filter(product__shop_item=True).order_by('delivered_product', 'payment_status', 'timestamp') - if offset is not None: - orders = orders[offset:] - if limit is not None: - orders = orders[:limit] + if offset is None: + offset = 0 + orders = orders[offset:] + + if limit is None or limit > 300: + limit = 300 #Add hard cap of maximum 300 orders per query. If we allowed this query to be bigger it would crash the website + orders = orders[:limit] return orders @staff_member_required diff --git a/backend/apps/ecommerce/schema.py b/backend/apps/ecommerce/schema.py index b9f9c6db7..d86acc0da 100644 --- a/backend/apps/ecommerce/schema.py +++ b/backend/apps/ecommerce/schema.py @@ -19,7 +19,7 @@ class EcommerceQueries(graphene.ObjectType, EcommerceResolvers): order = graphene.Field(OrderType, order_id=graphene.ID(required=True)) user_orders = graphene.List(NonNull(OrderType)) all_user_orders = graphene.List(NonNull(OrderType)) - all_shop_orders = graphene.List(graphene.NonNull(OrderType), limit=graphene.Int(), offset=graphene.Int()) + paginated_shop_orders = graphene.List(graphene.NonNull(OrderType), limit=graphene.Int(), offset=graphene.Int()) orders_by_status = graphene.Field( OrdersByStatusType, product_id=graphene.ID(required=True), status=graphene.String(required=True) diff --git a/backend/schema.json b/backend/schema.json index b7d4e813e..4d9817037 100644 --- a/backend/schema.json +++ b/backend/schema.json @@ -326,7 +326,7 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "allShopOrders", + "name": "paginatedShopOrders", "type": { "kind": "LIST", "name": null, diff --git a/frontend/src/components/pages/organization/OrgShop.tsx b/frontend/src/components/pages/organization/OrgShop.tsx index 86b2989db..3e3759636 100644 --- a/frontend/src/components/pages/organization/OrgShop.tsx +++ b/frontend/src/components/pages/organization/OrgShop.tsx @@ -1,22 +1,25 @@ import { useQuery } from "@apollo/client"; import { Box, Grid, Stack, Typography, Button} from "@mui/material"; -import {KeyboardArrowLeft, KeyboardArrowRight} from '@mui/icons-material'; import { useTheme } from '@mui/material/styles'; -import { AdminOrganizationFragment, AllShopOrdersDocument } from "@/generated/graphql"; +import { AdminOrganizationFragment, PaginatedShopOrdersDocument } from "@/generated/graphql"; import { ShopSale } from "../orgs/ShopSale"; -import React,{ useState } from 'react'; +import {TableStepper} from '../orgs/TableStepper'; +import { useState } from 'react'; type Props = { organization: AdminOrganizationFragment; }; export const OrgProducts: React.FC = ({ organization }) => { - const limit = 5 + const limit = 100 const [page, setPage] = useState(0); + const handlePageChange = (newValue: number) => { + setPage(newValue); + }; - const { data, error, loading } = useQuery(AllShopOrdersDocument, { + const { data, error, loading } = useQuery(PaginatedShopOrdersDocument, { variables: { limit: limit + 1, // The number of orders you want to fetch offset: page * limit, // The starting index (e.g., 0 for the first set of results) @@ -31,45 +34,17 @@ export const OrgProducts: React.FC = ({ organization }) => {

); } - if (data?.allShopOrders!.length === 0) { + if (data?.paginatedShopOrders!.length === 0) { return

Ingen ordre

; } - // Pagination button handlers - const nextPage = () => setPage(page + 1); - const prevPage = () => setPage(page > 0 ? page - 1 : 0); const theme = useTheme(); // Check if there is a next page (if we received less than `limit` items) - const hasNextPage = (data?.allShopOrders && data.allShopOrders.length < limit) ?? false; //Have to check if the data exists before I check that the data has a certain length. This gave me an error: data?.allShopOrders?.length < limit; + const hasNextPage = (data?.paginatedShopOrders && data.paginatedShopOrders.length < limit) ?? false; return ( - <> - - - - - - {page + 1} - - - + <> + + Navn på kunde @@ -80,18 +55,23 @@ export const OrgProducts: React.FC = ({ organization }) => { Antall bestilt
- Betalt status + Betalt status Mulige handlinger - Har vi levert varen + Har vi levert varen
- {/*If not loading and data is loaded -> Render grid element*/} - {(!loading && data) && - {data?.allShopOrders?.slice(0, limit).map((order) => { + + {loading ? ( + Loading... + ) : ( + data && ( + <> + + {data?.paginatedShopOrders?.slice(0, limit).map((order) => { return ( @@ -107,7 +87,14 @@ export const OrgProducts: React.FC = ({ organization }) => { ); })} - } + + + + + + + ) +)} ); }; diff --git a/frontend/src/components/pages/orgs/TableStepper.tsx b/frontend/src/components/pages/orgs/TableStepper.tsx new file mode 100644 index 000000000..81e7a6f80 --- /dev/null +++ b/frontend/src/components/pages/orgs/TableStepper.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Button, Typography, Stack } from '@mui/material'; +import { KeyboardArrowLeft, KeyboardArrowRight } from '@mui/icons-material'; +import { useTheme } from '@mui/material/styles'; + +type Props = { + hasNextPage: boolean; + page: number; + handlePageChange: (page: number) => void; +} + + +export const TableStepper: React.FC = ({hasNextPage, page, handlePageChange}) => { + + const theme = useTheme(); + const nextPage = () => handlePageChange(page + 1); + const prevPage = () => handlePageChange(page > 0 ? page - 1 : 0); + + // Check if there is a next page (if we received less than `limit` items) + //const hasNextPage = (data?.paginatedShopOrders && data.paginatedShopOrders.length < limit) ?? false; + + return ( + + + + {page + 1} + + + + ); +}; diff --git a/frontend/src/generated/graphql.tsx b/frontend/src/generated/graphql.tsx index e2322a43b..e8449e496 100644 --- a/frontend/src/generated/graphql.tsx +++ b/frontend/src/generated/graphql.tsx @@ -1014,7 +1014,6 @@ export type Queries = { allCategories?: Maybe>; allEvents?: Maybe>; allOrganizations?: Maybe>; - allShopOrders?: Maybe>; allUserOrders?: Maybe>; allUsers?: Maybe>; archiveByTypes: Array; @@ -1041,6 +1040,7 @@ export type Queries = { order?: Maybe; ordersByStatus?: Maybe; organization?: Maybe; + paginatedShopOrders?: Maybe>; product?: Maybe; products?: Maybe>; response?: Maybe; @@ -1071,12 +1071,6 @@ export type QueriesAllOrganizationsArgs = { }; -export type QueriesAllShopOrdersArgs = { - limit?: InputMaybe; - offset?: InputMaybe; -}; - - export type QueriesArchiveByTypesArgs = { names?: InputMaybe; typeDoc: Array>; @@ -1167,6 +1161,12 @@ export type QueriesOrganizationArgs = { }; +export type QueriesPaginatedShopOrdersArgs = { + limit?: InputMaybe; + offset?: InputMaybe; +}; + + export type QueriesProductArgs = { productId: Scalars['ID']['input']; }; @@ -1654,13 +1654,13 @@ export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never; }>; export type AllUserOrdersQuery = { __typename?: 'Queries', allUserOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; -export type AllShopOrdersQueryVariables = Exact<{ +export type PaginatedShopOrdersQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; }>; -export type AllShopOrdersQuery = { __typename?: 'Queries', allShopOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; +export type PaginatedShopOrdersQuery = { __typename?: 'Queries', paginatedShopOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; export type EventFieldsFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }; @@ -2070,7 +2070,7 @@ export const ProductDocument = {"kind":"Document","definitions":[{"kind":"Operat export const ProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]}}]} as unknown as DocumentNode; export const UserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; export const AllUserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const AllShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allShopOrders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allShopOrders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const PaginatedShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"paginatedShopOrders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"paginatedShopOrders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; export const CreateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; export const UpdateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; export const EventSignUpDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignUp"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignUp"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extraInformation"},"value":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index 2c26c26e1..7ba248c80 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -1030,7 +1030,6 @@ export type Queries = { allCategories: Maybe>; allEvents: Maybe>; allOrganizations: Maybe>; - allShopOrders: Maybe>; allUserOrders: Maybe>; allUsers: Maybe>; archiveByTypes: Array; @@ -1057,6 +1056,7 @@ export type Queries = { order: Maybe; ordersByStatus: Maybe; organization: Maybe; + paginatedShopOrders: Maybe>; product: Maybe; products: Maybe>; response: Maybe; @@ -1087,12 +1087,6 @@ export type QueriesAllOrganizationsArgs = { }; -export type QueriesAllShopOrdersArgs = { - limit: InputMaybe; - offset: InputMaybe; -}; - - export type QueriesArchiveByTypesArgs = { names: InputMaybe; typeDoc: Array>; @@ -1183,6 +1177,12 @@ export type QueriesOrganizationArgs = { }; +export type QueriesPaginatedShopOrdersArgs = { + limit: InputMaybe; + offset: InputMaybe; +}; + + export type QueriesProductArgs = { productId: Scalars['ID']['input']; }; diff --git a/frontend/src/graphql/ecommerce/queries.graphql b/frontend/src/graphql/ecommerce/queries.graphql index 3379eb558..b66bda868 100644 --- a/frontend/src/graphql/ecommerce/queries.graphql +++ b/frontend/src/graphql/ecommerce/queries.graphql @@ -27,8 +27,8 @@ query allUserOrders { } } -query allShopOrders($limit: Int, $offset: Int) { - allShopOrders(limit: $limit, offset: $offset) { +query paginatedShopOrders($limit: Int, $offset: Int) { + paginatedShopOrders(limit: $limit, offset: $offset) { ...Order } } \ No newline at end of file From 30b3e67c991b001293b038861d8d158c25aa71a2 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 17:25:18 +0200 Subject: [PATCH 04/11] Linting --- .../LandingHero/OrganizationsSlider.tsx | 4 +- .../src/app/_components/LandingHero/index.tsx | 4 +- .../components/pages/organization/OrgShop.tsx | 89 +- .../components/pages/orgs/TableStepper.tsx | 26 +- frontend/src/generated/graphql.tsx | 10419 ++++++++++++++-- frontend/src/gql/index.ts | 2 +- .../layouts/footer/HallOfFame/constants.ts | 6 +- frontend/src/pages/orgs/[orgId]/index.tsx | 8 +- 8 files changed, 9415 insertions(+), 1143 deletions(-) diff --git a/frontend/src/app/_components/LandingHero/OrganizationsSlider.tsx b/frontend/src/app/_components/LandingHero/OrganizationsSlider.tsx index d627ed2e2..79fa5be07 100644 --- a/frontend/src/app/_components/LandingHero/OrganizationsSlider.tsx +++ b/frontend/src/app/_components/LandingHero/OrganizationsSlider.tsx @@ -9,10 +9,10 @@ import { Swiper, SwiperSlide } from "swiper/react"; // Import Swiper styles import "swiper/css"; -import { Organization, OrganizationLink } from "./OrganizationLink"; - import { Link } from "@/app/components/Link"; +import { Organization, OrganizationLink } from "./OrganizationLink"; + const organizations: Readonly = [ { name: "Janus Sosial", internalUrl: "/janus" }, { name: "Bindeleddet", externalUrl: "https://www.bindeleddet.no" }, diff --git a/frontend/src/app/_components/LandingHero/index.tsx b/frontend/src/app/_components/LandingHero/index.tsx index fe2d6d7c3..a8b745c38 100644 --- a/frontend/src/app/_components/LandingHero/index.tsx +++ b/frontend/src/app/_components/LandingHero/index.tsx @@ -3,11 +3,11 @@ import { Box, Button, Container, Unstable_Grid2 as Grid, Typography } from "@mui/material"; import Image from "next/image"; -import { OrganizationsSlider } from "./OrganizationsSlider"; - import { Link } from "@/app/components/Link"; import Hero from "~/public/static/landing/hero.webp"; +import { OrganizationsSlider } from "./OrganizationsSlider"; + export const LandingHero: React.FC = () => { return ( <> diff --git a/frontend/src/components/pages/organization/OrgShop.tsx b/frontend/src/components/pages/organization/OrgShop.tsx index 3e3759636..e206fe8ba 100644 --- a/frontend/src/components/pages/organization/OrgShop.tsx +++ b/frontend/src/components/pages/organization/OrgShop.tsx @@ -1,18 +1,19 @@ import { useQuery } from "@apollo/client"; -import { Box, Grid, Stack, Typography, Button} from "@mui/material"; -import { useTheme } from '@mui/material/styles'; +import { Box, Grid, Stack, Typography } from "@mui/material"; +import { useTheme } from "@mui/material/styles"; +import { useState } from "react"; import { AdminOrganizationFragment, PaginatedShopOrdersDocument } from "@/generated/graphql"; + import { ShopSale } from "../orgs/ShopSale"; -import {TableStepper} from '../orgs/TableStepper'; -import { useState } from 'react'; +import { TableStepper } from "../orgs/TableStepper"; type Props = { organization: AdminOrganizationFragment; }; export const OrgProducts: React.FC = ({ organization }) => { - - const limit = 100 + const theme = useTheme(); + const limit = 100; const [page, setPage] = useState(0); const handlePageChange = (newValue: number) => { @@ -21,8 +22,8 @@ export const OrgProducts: React.FC = ({ organization }) => { const { data, error, loading } = useQuery(PaginatedShopOrdersDocument, { variables: { - limit: limit + 1, // The number of orders you want to fetch - offset: page * limit, // The starting index (e.g., 0 for the first set of results) + limit: limit + 1, // The number of orders you want to fetch + offset: page * limit, // The starting index (e.g., 0 for the first set of results) }, }); if (error) return

Error

; @@ -37,14 +38,20 @@ export const OrgProducts: React.FC = ({ organization }) => { if (data?.paginatedShopOrders!.length === 0) { return

Ingen ordre

; } - const theme = useTheme(); - // Check if there is a next page (if we received less than `limit` items) - const hasNextPage = (data?.paginatedShopOrders && data.paginatedShopOrders.length < limit) ?? false; + // Check if there is a next page (if we received less than `limit` items) + const hasNextPage = (data?.paginatedShopOrders && data.paginatedShopOrders.length < limit) ?? false; - return ( + return ( <> - + Navn på kunde @@ -66,35 +73,35 @@ export const OrgProducts: React.FC = ({ organization }) => { {loading ? ( - Loading... - ) : ( - data && ( - <> - - {data?.paginatedShopOrders?.slice(0, limit).map((order) => { - return ( - - - - - - ); - })} - + Loading... + ) : ( + data && ( + <> + + {data?.paginatedShopOrders?.slice(0, limit).map((order) => { + return ( + + + + + + ); + })} + - - - - - ) -)} + + + + + ) + )} ); }; diff --git a/frontend/src/components/pages/orgs/TableStepper.tsx b/frontend/src/components/pages/orgs/TableStepper.tsx index 81e7a6f80..5c85d43db 100644 --- a/frontend/src/components/pages/orgs/TableStepper.tsx +++ b/frontend/src/components/pages/orgs/TableStepper.tsx @@ -1,17 +1,15 @@ -import React from 'react'; -import { Button, Typography, Stack } from '@mui/material'; -import { KeyboardArrowLeft, KeyboardArrowRight } from '@mui/icons-material'; -import { useTheme } from '@mui/material/styles'; +import { KeyboardArrowLeft, KeyboardArrowRight } from "@mui/icons-material"; +import { Button, Typography, Stack } from "@mui/material"; +import { useTheme } from "@mui/material/styles"; +import React from "react"; type Props = { - hasNextPage: boolean; - page: number; - handlePageChange: (page: number) => void; -} - - -export const TableStepper: React.FC = ({hasNextPage, page, handlePageChange}) => { + hasNextPage: boolean; + page: number; + handlePageChange: (page: number) => void; +}; +export const TableStepper: React.FC = ({ hasNextPage, page, handlePageChange }) => { const theme = useTheme(); const nextPage = () => handlePageChange(page + 1); const prevPage = () => handlePageChange(page > 0 ? page - 1 : 0); @@ -21,10 +19,10 @@ export const TableStepper: React.FC = ({hasNextPage, page, handlePageChan return ( @@ -32,7 +30,7 @@ export const TableStepper: React.FC = ({hasNextPage, page, handlePageChan ); diff --git a/frontend/src/generated/graphql.tsx b/frontend/src/generated/graphql.tsx index e8449e496..35be7f996 100644 --- a/frontend/src/generated/graphql.tsx +++ b/frontend/src/generated/graphql.tsx @@ -1,45 +1,45 @@ -import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Incremental = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } - Date: { input: string; output: string; } - DateTime: { input: string; output: string; } - Decimal: { input: number; output: number; } - UUID: { input: string; output: string; } + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; + Date: { input: string; output: string }; + DateTime: { input: string; output: string }; + Decimal: { input: number; output: number }; + UUID: { input: string; output: string }; }; /** Booking type for admin users */ export type AdminBookingType = { - __typename?: 'AdminBookingType'; + __typename?: "AdminBookingType"; cabins: Array; - checkIn: Scalars['Date']['output']; - checkOut: Scalars['Date']['output']; - declineReason: Scalars['String']['output']; - externalParticipants: Scalars['Int']['output']; - extraInfo: Scalars['String']['output']; - firstName: Scalars['String']['output']; - id: Scalars['ID']['output']; - internalParticipants: Scalars['Int']['output']; - isDeclined: Scalars['Boolean']['output']; - isInternalPrice?: Maybe; - isTentative: Scalars['Boolean']['output']; - lastName: Scalars['String']['output']; - numberOfNights?: Maybe; - phone: Scalars['String']['output']; - price?: Maybe; - receiverEmail: Scalars['String']['output']; - timestamp: Scalars['DateTime']['output']; + checkIn: Scalars["Date"]["output"]; + checkOut: Scalars["Date"]["output"]; + declineReason: Scalars["String"]["output"]; + externalParticipants: Scalars["Int"]["output"]; + extraInfo: Scalars["String"]["output"]; + firstName: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + internalParticipants: Scalars["Int"]["output"]; + isDeclined: Scalars["Boolean"]["output"]; + isInternalPrice?: Maybe; + isTentative: Scalars["Boolean"]["output"]; + lastName: Scalars["String"]["output"]; + numberOfNights?: Maybe; + phone: Scalars["String"]["output"]; + price?: Maybe; + receiverEmail: Scalars["String"]["output"]; + timestamp: Scalars["DateTime"]["output"]; }; /** @@ -49,398 +49,398 @@ export type AdminBookingType = { * when a user signs off an event */ export type AdminEventSignOff = { - __typename?: 'AdminEventSignOff'; + __typename?: "AdminEventSignOff"; event?: Maybe; }; /** Booking type for fields available for not logged in users */ export type AllBookingsType = { - __typename?: 'AllBookingsType'; + __typename?: "AllBookingsType"; cabins: Array; - checkIn: Scalars['Date']['output']; - checkOut: Scalars['Date']['output']; - id: Scalars['ID']['output']; + checkIn: Scalars["Date"]["output"]; + checkOut: Scalars["Date"]["output"]; + id: Scalars["ID"]["output"]; }; export type AnswerInput = { - answer: Scalars['String']['input']; - questionId: Scalars['ID']['input']; + answer: Scalars["String"]["input"]; + questionId: Scalars["ID"]["input"]; }; /** A user's answer to a question. */ export type AnswerType = { - __typename?: 'AnswerType'; - answer: Scalars['String']['output']; - id?: Maybe; + __typename?: "AnswerType"; + answer: Scalars["String"]["output"]; + id?: Maybe; question: QuestionType; - uuid: Scalars['UUID']['output']; + uuid: Scalars["UUID"]["output"]; }; export type ArchiveDocumentType = { - __typename?: 'ArchiveDocumentType'; - featured: Scalars['Boolean']['output']; - fileLocation: Scalars['String']['output']; - id: Scalars['ID']['output']; - thumbnail?: Maybe; - title: Scalars['String']['output']; + __typename?: "ArchiveDocumentType"; + featured: Scalars["Boolean"]["output"]; + fileLocation: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + thumbnail?: Maybe; + title: Scalars["String"]["output"]; typeDoc: ArchiveDocumentTypeDoc; - webLink?: Maybe; - year?: Maybe; + webLink?: Maybe; + year?: Maybe; }; /** An enumeration. */ export enum ArchiveDocumentTypeDoc { /** Annet */ - Annet = 'ANNET', + Annet = "ANNET", /** Årbøker */ - Arboker = 'ARBOKER', + Arboker = "ARBOKER", /** Budsjett og Regnskap */ - BudsjettOgRegnskap = 'BUDSJETT_OG_REGNSKAP', + BudsjettOgRegnskap = "BUDSJETT_OG_REGNSKAP", /** Foreningens lover */ - ForeningensLover = 'FORENINGENS_LOVER', + ForeningensLover = "FORENINGENS_LOVER", /** Generalforsamling */ - Generalforsamling = 'GENERALFORSAMLING', + Generalforsamling = "GENERALFORSAMLING", /** Januscript */ - Januscript = 'JANUSCRIPT', + Januscript = "JANUSCRIPT", /** Støtte fra HS */ - StotteFraHs = 'STOTTE_FRA_HS', + StotteFraHs = "STOTTE_FRA_HS", /** Utveksling */ - Utveksling = 'UTVEKSLING' + Utveksling = "UTVEKSLING", } export type AssignMembership = { - __typename?: 'AssignMembership'; + __typename?: "AssignMembership"; membership?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type AttemptCapturePayment = { - __typename?: 'AttemptCapturePayment'; + __typename?: "AttemptCapturePayment"; order?: Maybe; status?: Maybe; }; export type AuthUser = { - __typename?: 'AuthUser'; + __typename?: "AuthUser"; user: UserType; }; export type BaseFormInput = { - description?: InputMaybe; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + organizationId?: InputMaybe; }; export type BaseListingInput = { - application?: InputMaybe; - applicationUrl?: InputMaybe; - case?: InputMaybe; - deadline?: InputMaybe; - description?: InputMaybe; - endDatetime?: InputMaybe; - formId?: InputMaybe; - interview?: InputMaybe; - readMoreUrl?: InputMaybe; - startDatetime?: InputMaybe; - title?: InputMaybe; + application?: InputMaybe; + applicationUrl?: InputMaybe; + case?: InputMaybe; + deadline?: InputMaybe; + description?: InputMaybe; + endDatetime?: InputMaybe; + formId?: InputMaybe; + interview?: InputMaybe; + readMoreUrl?: InputMaybe; + startDatetime?: InputMaybe; + title?: InputMaybe; }; export type BaseQuestionInput = { - description?: InputMaybe; - mandatory?: InputMaybe; - question?: InputMaybe; + description?: InputMaybe; + mandatory?: InputMaybe; + question?: InputMaybe; questionType?: InputMaybe; }; export type BlogPostType = { - __typename?: 'BlogPostType'; + __typename?: "BlogPostType"; author?: Maybe; blog?: Maybe; - id: Scalars['ID']['output']; - publishDate: Scalars['DateTime']['output']; - text: Scalars['String']['output']; - title: Scalars['String']['output']; + id: Scalars["ID"]["output"]; + publishDate: Scalars["DateTime"]["output"]; + text: Scalars["String"]["output"]; + title: Scalars["String"]["output"]; }; export type BlogType = { - __typename?: 'BlogType'; + __typename?: "BlogType"; blogPosts: Array; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; + description: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; organization?: Maybe; }; /** Basic booking object type used as a base for other types and as a standalone */ export type BookingInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - internalParticipants?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + internalParticipants?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; export type BookingResponsibleType = { - __typename?: 'BookingResponsibleType'; - active?: Maybe; - email?: Maybe; - firstName?: Maybe; - id: Scalars['ID']['output']; - lastName?: Maybe; - phone?: Maybe; + __typename?: "BookingResponsibleType"; + active?: Maybe; + email?: Maybe; + firstName?: Maybe; + id: Scalars["ID"]["output"]; + lastName?: Maybe; + phone?: Maybe; }; export type CabinType = { - __typename?: 'CabinType'; - externalPrice: Scalars['Int']['output']; - externalPriceWeekend: Scalars['Int']['output']; - id: Scalars['ID']['output']; - internalPrice: Scalars['Int']['output']; - internalPriceWeekend: Scalars['Int']['output']; - maxGuests: Scalars['Int']['output']; - name: Scalars['String']['output']; + __typename?: "CabinType"; + externalPrice: Scalars["Int"]["output"]; + externalPriceWeekend: Scalars["Int"]["output"]; + id: Scalars["ID"]["output"]; + internalPrice: Scalars["Int"]["output"]; + internalPriceWeekend: Scalars["Int"]["output"]; + maxGuests: Scalars["Int"]["output"]; + name: Scalars["String"]["output"]; }; export type CategoryInput = { - name?: InputMaybe; + name?: InputMaybe; }; export type CategoryType = { - __typename?: 'CategoryType'; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; + __typename?: "CategoryType"; + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; }; export type CreateArchiveDocument = { - __typename?: 'CreateArchiveDocument'; + __typename?: "CreateArchiveDocument"; arhiveDocument?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateBlog = { - __typename?: 'CreateBlog'; + __typename?: "CreateBlog"; blog?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateBlogPost = { - __typename?: 'CreateBlogPost'; + __typename?: "CreateBlogPost"; blogPost?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Add a new booking to the database */ export type CreateBooking = { - __typename?: 'CreateBooking'; + __typename?: "CreateBooking"; booking?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Create a new event category */ export type CreateCategory = { - __typename?: 'CreateCategory'; + __typename?: "CreateCategory"; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Create a new event */ export type CreateEvent = { - __typename?: 'CreateEvent'; + __typename?: "CreateEvent"; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateEventInput = { - allowedGradeYears?: InputMaybe>; - availableSlots?: InputMaybe; - bindingSignup?: InputMaybe; - categoryId?: InputMaybe; - contactEmail?: InputMaybe; - deadline?: InputMaybe; - description: Scalars['String']['input']; - endTime?: InputMaybe; - hasExtraInformation?: InputMaybe; - image?: InputMaybe; - isAttendable: Scalars['Boolean']['input']; - location?: InputMaybe; - organizationId: Scalars['ID']['input']; - price?: InputMaybe; - shortDescription?: InputMaybe; - signupOpenDate?: InputMaybe; - startTime: Scalars['DateTime']['input']; - title: Scalars['String']['input']; + allowedGradeYears?: InputMaybe>; + availableSlots?: InputMaybe; + bindingSignup?: InputMaybe; + categoryId?: InputMaybe; + contactEmail?: InputMaybe; + deadline?: InputMaybe; + description: Scalars["String"]["input"]; + endTime?: InputMaybe; + hasExtraInformation?: InputMaybe; + image?: InputMaybe; + isAttendable: Scalars["Boolean"]["input"]; + location?: InputMaybe; + organizationId: Scalars["ID"]["input"]; + price?: InputMaybe; + shortDescription?: InputMaybe; + signupOpenDate?: InputMaybe; + startTime: Scalars["DateTime"]["input"]; + title: Scalars["String"]["input"]; }; export type CreateForm = { - __typename?: 'CreateForm'; + __typename?: "CreateForm"; form?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateFormInput = { - description?: InputMaybe; - name: Scalars['String']['input']; - organizationId: Scalars['ID']['input']; + description?: InputMaybe; + name: Scalars["String"]["input"]; + organizationId: Scalars["ID"]["input"]; }; /** Creates a new listing */ export type CreateListing = { - __typename?: 'CreateListing'; + __typename?: "CreateListing"; listing?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type CreateListingInput = { - application?: InputMaybe; - applicationUrl?: InputMaybe; - case?: InputMaybe; - deadline: Scalars['DateTime']['input']; - description?: InputMaybe; - endDatetime?: InputMaybe; - formId?: InputMaybe; - interview?: InputMaybe; - organizationId: Scalars['ID']['input']; - readMoreUrl?: InputMaybe; - startDatetime?: InputMaybe; - title: Scalars['String']['input']; + application?: InputMaybe; + applicationUrl?: InputMaybe; + case?: InputMaybe; + deadline: Scalars["DateTime"]["input"]; + description?: InputMaybe; + endDatetime?: InputMaybe; + formId?: InputMaybe; + interview?: InputMaybe; + organizationId: Scalars["ID"]["input"]; + readMoreUrl?: InputMaybe; + startDatetime?: InputMaybe; + title: Scalars["String"]["input"]; }; export type CreateOrganization = { - __typename?: 'CreateOrganization'; - ok?: Maybe; + __typename?: "CreateOrganization"; + ok?: Maybe; organization?: Maybe; }; export type CreateProduct = { - __typename?: 'CreateProduct'; - ok?: Maybe; + __typename?: "CreateProduct"; + ok?: Maybe; product?: Maybe; }; export type CreateProductInput = { - description: Scalars['String']['input']; - maxBuyableQuantity: Scalars['Int']['input']; - name: Scalars['String']['input']; - organizationId: Scalars['ID']['input']; - price: Scalars['Decimal']['input']; - totalQuantity: Scalars['Int']['input']; + description: Scalars["String"]["input"]; + maxBuyableQuantity: Scalars["Int"]["input"]; + name: Scalars["String"]["input"]; + organizationId: Scalars["ID"]["input"]; + price: Scalars["Decimal"]["input"]; + totalQuantity: Scalars["Int"]["input"]; }; export type CreateQuestion = { - __typename?: 'CreateQuestion'; - ok?: Maybe; + __typename?: "CreateQuestion"; + ok?: Maybe; question?: Maybe; }; export type CreateQuestionInput = { - description?: InputMaybe; - mandatory?: InputMaybe; - question: Scalars['String']['input']; + description?: InputMaybe; + mandatory?: InputMaybe; + question: Scalars["String"]["input"]; questionType?: InputMaybe; }; export type CreateUpdateAndDeleteOptions = { - __typename?: 'CreateUpdateAndDeleteOptions'; - ok?: Maybe; + __typename?: "CreateUpdateAndDeleteOptions"; + ok?: Maybe; options?: Maybe>; }; export type DeleteAnswer = { - __typename?: 'DeleteAnswer'; - deletedUuid?: Maybe; - ok?: Maybe; + __typename?: "DeleteAnswer"; + deletedUuid?: Maybe; + ok?: Maybe; }; export type DeleteAnswersToForm = { - __typename?: 'DeleteAnswersToForm'; - ok?: Maybe; + __typename?: "DeleteAnswersToForm"; + ok?: Maybe; }; export type DeleteArchiveDocument = { - __typename?: 'DeleteArchiveDocument'; + __typename?: "DeleteArchiveDocument"; archiveDocument?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type DeleteBlog = { - __typename?: 'DeleteBlog'; - ok?: Maybe; + __typename?: "DeleteBlog"; + ok?: Maybe; }; export type DeleteBlogPost = { - __typename?: 'DeleteBlogPost'; - ok?: Maybe; + __typename?: "DeleteBlogPost"; + ok?: Maybe; }; /** Deletes the booking with the given ID */ export type DeleteBooking = { - __typename?: 'DeleteBooking'; - bookingId?: Maybe; - ok?: Maybe; + __typename?: "DeleteBooking"; + bookingId?: Maybe; + ok?: Maybe; }; /** Deletes the category with a given ID */ export type DeleteCategory = { - __typename?: 'DeleteCategory'; + __typename?: "DeleteCategory"; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Deletes the event with the given ID */ export type DeleteEvent = { - __typename?: 'DeleteEvent'; + __typename?: "DeleteEvent"; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type DeleteForm = { - __typename?: 'DeleteForm'; - deletedId?: Maybe; - ok?: Maybe; + __typename?: "DeleteForm"; + deletedId?: Maybe; + ok?: Maybe; }; /** Deletes the listing with the given ID */ export type DeleteListing = { - __typename?: 'DeleteListing'; - listingId?: Maybe; - ok?: Maybe; + __typename?: "DeleteListing"; + listingId?: Maybe; + ok?: Maybe; }; export type DeleteOrganization = { - __typename?: 'DeleteOrganization'; - ok?: Maybe; + __typename?: "DeleteOrganization"; + ok?: Maybe; organization?: Maybe; }; export type DeleteQuestion = { - __typename?: 'DeleteQuestion'; - deletedId?: Maybe; - ok?: Maybe; + __typename?: "DeleteQuestion"; + deletedId?: Maybe; + ok?: Maybe; }; export type DeliveredProduct = { - __typename?: 'DeliveredProduct'; - ok?: Maybe; + __typename?: "DeliveredProduct"; + ok?: Maybe; order?: Maybe; }; export type EmailInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - emailType?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - internalParticipants?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + emailType?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + internalParticipants?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; /** @@ -450,9 +450,9 @@ export type EmailInput = { * when a user signs off an event */ export type EventSignOff = { - __typename?: 'EventSignOff'; + __typename?: "EventSignOff"; event?: Maybe; - isFull?: Maybe; + isFull?: Maybe; }; /** @@ -460,39 +460,39 @@ export type EventSignOff = { * with the given ID */ export type EventSignUp = { - __typename?: 'EventSignUp'; + __typename?: "EventSignUp"; event?: Maybe; - isFull?: Maybe; + isFull?: Maybe; }; export type EventSignUpInput = { - extraInformation?: InputMaybe; + extraInformation?: InputMaybe; }; export type EventType = { - __typename?: 'EventType'; - allowedGradeYears?: Maybe>; - availableSlots?: Maybe; - bindingSignup: Scalars['Boolean']['output']; + __typename?: "EventType"; + allowedGradeYears?: Maybe>; + availableSlots?: Maybe; + bindingSignup: Scalars["Boolean"]["output"]; category?: Maybe; - contactEmail: Scalars['String']['output']; - deadline?: Maybe; - description: Scalars['String']['output']; - endTime?: Maybe; - hasExtraInformation: Scalars['Boolean']['output']; - id: Scalars['ID']['output']; - image?: Maybe; - isAttendable: Scalars['Boolean']['output']; - isFull?: Maybe; - location?: Maybe; + contactEmail: Scalars["String"]["output"]; + deadline?: Maybe; + description: Scalars["String"]["output"]; + endTime?: Maybe; + hasExtraInformation: Scalars["Boolean"]["output"]; + id: Scalars["ID"]["output"]; + image?: Maybe; + isAttendable: Scalars["Boolean"]["output"]; + isFull?: Maybe; + location?: Maybe; organization: OrganizationType; - price?: Maybe; + price?: Maybe; product?: Maybe; publisher?: Maybe; - shortDescription?: Maybe; - signupOpenDate?: Maybe; - startTime: Scalars['DateTime']['output']; - title: Scalars['String']['output']; + shortDescription?: Maybe; + signupOpenDate?: Maybe; + startTime: Scalars["DateTime"]["output"]; + title: Scalars["String"]["output"]; userAttendance?: Maybe; usersAttending?: Maybe>; usersOnWaitingList?: Maybe>; @@ -500,10 +500,10 @@ export type EventType = { /** A form containing questions, optionally linked to a listing. */ export type FormType = { - __typename?: 'FormType'; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; + __typename?: "FormType"; + description: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; organization?: Maybe; questions: Array; responder?: Maybe; @@ -512,69 +512,66 @@ export type FormType = { responses?: Maybe>; }; - /** A form containing questions, optionally linked to a listing. */ export type FormTypeResponderArgs = { - userId: Scalars['ID']['input']; + userId: Scalars["ID"]["input"]; }; - /** A form containing questions, optionally linked to a listing. */ export type FormTypeRespondersArgs = { - userId?: InputMaybe; + userId?: InputMaybe; }; - /** A form containing questions, optionally linked to a listing. */ export type FormTypeResponseArgs = { - responsePk?: InputMaybe; + responsePk?: InputMaybe; }; export type InitiateOrder = { - __typename?: 'InitiateOrder'; - orderId?: Maybe; - redirect?: Maybe; + __typename?: "InitiateOrder"; + orderId?: Maybe; + redirect?: Maybe; }; export type ListingType = { - __typename?: 'ListingType'; - applicationUrl?: Maybe; - chips: Array; - deadline: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - endDatetime: Scalars['DateTime']['output']; + __typename?: "ListingType"; + applicationUrl?: Maybe; + chips: Array; + deadline: Scalars["DateTime"]["output"]; + description: Scalars["String"]["output"]; + endDatetime: Scalars["DateTime"]["output"]; form?: Maybe; - heroImageUrl?: Maybe; - id: Scalars['ID']['output']; + heroImageUrl?: Maybe; + id: Scalars["ID"]["output"]; organization: OrganizationType; - readMoreUrl?: Maybe; - slug: Scalars['String']['output']; - startDatetime: Scalars['DateTime']['output']; - title: Scalars['String']['output']; - viewCount: Scalars['Int']['output']; + readMoreUrl?: Maybe; + slug: Scalars["String"]["output"]; + startDatetime: Scalars["DateTime"]["output"]; + title: Scalars["String"]["output"]; + viewCount: Scalars["Int"]["output"]; }; export type Logout = { - __typename?: 'Logout'; - idToken?: Maybe; + __typename?: "Logout"; + idToken?: Maybe; }; export type MembershipInput = { - groupId?: InputMaybe; - organizationId?: InputMaybe; - userId?: InputMaybe; + groupId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; }; export type MembershipType = { - __typename?: 'MembershipType'; + __typename?: "MembershipType"; group?: Maybe; - id: Scalars['ID']['output']; + id: Scalars["ID"]["output"]; organization: OrganizationType; user: UserType; }; export type Mutations = { - __typename?: 'Mutations'; + __typename?: "Mutations"; /** * Sets the field is_attending to False in the Sign Up for the user with the * given ID, for the event with the given ID @@ -657,355 +654,307 @@ export type Mutations = { updateUser?: Maybe; }; - export type MutationsAdminEventSignOffArgs = { - eventId: Scalars['ID']['input']; - userId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; + userId: Scalars["ID"]["input"]; }; - export type MutationsAssignMembershipArgs = { membershipData: MembershipInput; }; - export type MutationsAttemptCapturePaymentArgs = { - orderId: Scalars['ID']['input']; + orderId: Scalars["ID"]["input"]; }; - export type MutationsAuthUserArgs = { - code: Scalars['String']['input']; + code: Scalars["String"]["input"]; }; - export type MutationsCreateArchivedocumentArgs = { - date?: InputMaybe; - fileLocation?: InputMaybe; - title?: InputMaybe; - typeDoc?: InputMaybe; - webLink?: InputMaybe; + date?: InputMaybe; + fileLocation?: InputMaybe; + title?: InputMaybe; + typeDoc?: InputMaybe; + webLink?: InputMaybe; }; - export type MutationsCreateBlogArgs = { - description?: InputMaybe; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + organizationId?: InputMaybe; }; - export type MutationsCreateBlogPostArgs = { - authorId?: InputMaybe; - blogId?: InputMaybe; - text?: InputMaybe; - title?: InputMaybe; + authorId?: InputMaybe; + blogId?: InputMaybe; + text?: InputMaybe; + title?: InputMaybe; }; - export type MutationsCreateBookingArgs = { bookingData?: InputMaybe; }; - export type MutationsCreateCategoryArgs = { categoryData: CategoryInput; }; - export type MutationsCreateEventArgs = { eventData: CreateEventInput; }; - export type MutationsCreateFormArgs = { formData: CreateFormInput; - listingId?: InputMaybe; + listingId?: InputMaybe; }; - export type MutationsCreateListingArgs = { listingData: CreateListingInput; }; - export type MutationsCreateOrganizationArgs = { organizationData: OrganizationInput; }; - export type MutationsCreateProductArgs = { productData: CreateProductInput; }; - export type MutationsCreateQuestionArgs = { - formId?: InputMaybe; + formId?: InputMaybe; questionData: CreateQuestionInput; }; - export type MutationsCreateUpdateAndDeleteOptionsArgs = { optionData?: InputMaybe>; - questionId: Scalars['ID']['input']; + questionId: Scalars["ID"]["input"]; }; - export type MutationsDeleteAnswerArgs = { - uuid: Scalars['ID']['input']; + uuid: Scalars["ID"]["input"]; }; - export type MutationsDeleteAnswersArgs = { - formId?: InputMaybe; + formId?: InputMaybe; }; - export type MutationsDeleteArchivedocumentArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsDeleteBlogArgs = { - blogId?: InputMaybe; + blogId?: InputMaybe; }; - export type MutationsDeleteBlogPostArgs = { - blogPostId?: InputMaybe; + blogPostId?: InputMaybe; }; - export type MutationsDeleteBookingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsDeleteCategoryArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsDeleteEventArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsDeleteFormArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type MutationsDeleteListingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsDeleteOrganizationArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type MutationsDeleteQuestionArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type MutationsDeliveredProductArgs = { - orderId: Scalars['ID']['input']; + orderId: Scalars["ID"]["input"]; }; - export type MutationsEventSignOffArgs = { - eventId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; }; - export type MutationsEventSignUpArgs = { data?: InputMaybe; - eventId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; }; - export type MutationsInitiateOrderArgs = { - fallbackRedirect?: InputMaybe; - productId: Scalars['ID']['input']; - quantity?: InputMaybe; + fallbackRedirect?: InputMaybe; + productId: Scalars["ID"]["input"]; + quantity?: InputMaybe; }; - export type MutationsSendEmailArgs = { emailInput?: InputMaybe; }; - export type MutationsSendEventMailsArgs = { - content?: InputMaybe; - eventId: Scalars['ID']['input']; - receiverEmails?: InputMaybe>; - subject: Scalars['String']['input']; + content?: InputMaybe; + eventId: Scalars["ID"]["input"]; + receiverEmails?: InputMaybe>; + subject: Scalars["String"]["input"]; }; - export type MutationsSubmitAnswersArgs = { answersData?: InputMaybe>; - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; }; - export type MutationsUpdateArchivedocumentArgs = { - date?: InputMaybe; - fileLocation?: InputMaybe; - id?: InputMaybe; - title?: InputMaybe; - typeDoc?: InputMaybe; - webLink?: InputMaybe; + date?: InputMaybe; + fileLocation?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + typeDoc?: InputMaybe; + webLink?: InputMaybe; }; - export type MutationsUpdateBlogArgs = { blogData?: InputMaybe; }; - export type MutationsUpdateBlogPostArgs = { blogPostData?: InputMaybe; }; - export type MutationsUpdateBookingArgs = { bookingData?: InputMaybe; }; - export type MutationsUpdateBookingSemesterArgs = { semesterData?: InputMaybe; }; - export type MutationsUpdateCabinArgs = { cabinData?: InputMaybe; }; - export type MutationsUpdateCategoryArgs = { categoryData?: InputMaybe; - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type MutationsUpdateEventArgs = { eventData?: InputMaybe; - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type MutationsUpdateFormArgs = { formData: BaseFormInput; - id?: InputMaybe; + id?: InputMaybe; }; - export type MutationsUpdateListingArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; listingData?: InputMaybe; }; - export type MutationsUpdateOrganizationArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; organizationData?: InputMaybe; }; - export type MutationsUpdateQuestionArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; questionData: BaseQuestionInput; }; - export type MutationsUpdateUserArgs = { userData?: InputMaybe; }; export type OptionInput = { - answer: Scalars['String']['input']; - id?: InputMaybe; + answer: Scalars["String"]["input"]; + id?: InputMaybe; }; /** Option for multiple choice questions */ export type OptionType = { - __typename?: 'OptionType'; - answer: Scalars['String']['output']; - id: Scalars['ID']['output']; + __typename?: "OptionType"; + answer: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; question: QuestionType; }; export type OrderType = { - __typename?: 'OrderType'; - deliveredProduct: Scalars['Boolean']['output']; - id: Scalars['UUID']['output']; + __typename?: "OrderType"; + deliveredProduct: Scalars["Boolean"]["output"]; + id: Scalars["UUID"]["output"]; paymentStatus: PaymentStatus; product: ProductType; - quantity: Scalars['Int']['output']; - timestamp: Scalars['DateTime']['output']; - totalPrice: Scalars['Decimal']['output']; + quantity: Scalars["Int"]["output"]; + timestamp: Scalars["DateTime"]["output"]; + totalPrice: Scalars["Decimal"]["output"]; user: UserType; }; export type OrdersByStatusType = { - __typename?: 'OrdersByStatusType'; - length?: Maybe; + __typename?: "OrdersByStatusType"; + length?: Maybe; orders?: Maybe>; }; export type OrganizationInput = { - description?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; }; export type OrganizationType = { - __typename?: 'OrganizationType'; - absoluteSlug?: Maybe; + __typename?: "OrganizationType"; + absoluteSlug?: Maybe; children: Array; - color?: Maybe; - description: Scalars['String']['output']; + color?: Maybe; + description: Scalars["String"]["output"]; events: Array; hrGroup?: Maybe; - id: Scalars['ID']['output']; + id: Scalars["ID"]["output"]; listings?: Maybe>; - logoUrl?: Maybe; - name: Scalars['String']['output']; + logoUrl?: Maybe; + name: Scalars["String"]["output"]; parent?: Maybe; primaryGroup?: Maybe; - slug: Scalars['String']['output']; + slug: Scalars["String"]["output"]; users: Array; }; /** An enumeration. */ export enum PaymentStatus { - Cancelled = 'CANCELLED', - Captured = 'CAPTURED', - Failed = 'FAILED', - Initiated = 'INITIATED', - Refunded = 'REFUNDED', - Rejected = 'REJECTED', - Reserved = 'RESERVED' + Cancelled = "CANCELLED", + Captured = "CAPTURED", + Failed = "FAILED", + Initiated = "INITIATED", + Refunded = "REFUNDED", + Rejected = "REJECTED", + Reserved = "RESERVED", } export type ProductType = { - __typename?: 'ProductType'; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - maxBuyableQuantity: Scalars['Int']['output']; - name: Scalars['String']['output']; - price: Scalars['Decimal']['output']; - shopItem: Scalars['Boolean']['output']; + __typename?: "ProductType"; + description: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + maxBuyableQuantity: Scalars["Int"]["output"]; + name: Scalars["String"]["output"]; + price: Scalars["Decimal"]["output"]; + shopItem: Scalars["Boolean"]["output"]; }; export type Queries = { - __typename?: 'Queries'; + __typename?: "Queries"; activeBookingResponsible?: Maybe; adminAllBookings?: Maybe>; allBlogPosts?: Maybe>; @@ -1017,10 +966,10 @@ export type Queries = { allUserOrders?: Maybe>; allUsers?: Maybe>; archiveByTypes: Array; - attendeeReport?: Maybe; - attendeeReportOrg?: Maybe; - attendeeReports?: Maybe; - availableYears: Array; + attendeeReport?: Maybe; + attendeeReportOrg?: Maybe; + attendeeReports?: Maybe; + availableYears: Array; blog?: Maybe; blogPost?: Maybe; bookingSemester?: Maybe; @@ -1032,10 +981,10 @@ export type Queries = { featuredArchive: Array; form?: Maybe; forms?: Maybe>; - hasPermission?: Maybe; + hasPermission?: Maybe; listing?: Maybe; listings?: Maybe>; - logout: Scalars['String']['output']; + logout: Scalars["String"]["output"]; memberships?: Maybe>; order?: Maybe; ordersByStatus?: Maybe; @@ -1045,1071 +994,9387 @@ export type Queries = { products?: Maybe>; response?: Maybe; responses?: Maybe>; - serverTime?: Maybe; + serverTime?: Maybe; signUps?: Maybe; user?: Maybe; userOrders?: Maybe>; }; - export type QueriesAdminAllBookingsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; }; - export type QueriesAllEventsArgs = { - category?: InputMaybe; - endTime?: InputMaybe; - organization?: InputMaybe; - startTime?: InputMaybe; + category?: InputMaybe; + endTime?: InputMaybe; + organization?: InputMaybe; + startTime?: InputMaybe; }; - export type QueriesAllOrganizationsArgs = { - search?: InputMaybe; + search?: InputMaybe; }; - export type QueriesArchiveByTypesArgs = { - names?: InputMaybe; - typeDoc: Array>; - year?: InputMaybe; + names?: InputMaybe; + typeDoc: Array>; + year?: InputMaybe; }; - export type QueriesAttendeeReportArgs = { - eventId: Scalars['ID']['input']; - fields?: InputMaybe>; - filetype?: InputMaybe; + eventId: Scalars["ID"]["input"]; + fields?: InputMaybe>; + filetype?: InputMaybe; }; - export type QueriesAttendeeReportOrgArgs = { - fields?: InputMaybe>; - filetype?: InputMaybe; - orgId: Scalars['ID']['input']; + fields?: InputMaybe>; + filetype?: InputMaybe; + orgId: Scalars["ID"]["input"]; }; - export type QueriesAttendeeReportsArgs = { - eventIds: Array; - fields?: InputMaybe>; - filetype?: InputMaybe; + eventIds: Array; + fields?: InputMaybe>; + filetype?: InputMaybe; }; - export type QueriesBlogArgs = { - blogId: Scalars['ID']['input']; + blogId: Scalars["ID"]["input"]; }; - export type QueriesBlogPostArgs = { - blogPostId: Scalars['ID']['input']; + blogPostId: Scalars["ID"]["input"]; }; - export type QueriesCategoryArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type QueriesEventArgs = { - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }; - export type QueriesFormArgs = { - formId?: InputMaybe; + formId?: InputMaybe; }; - export type QueriesHasPermissionArgs = { - permission: Scalars['String']['input']; + permission: Scalars["String"]["input"]; }; - export type QueriesListingArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueriesListingsArgs = { - search?: InputMaybe; + search?: InputMaybe; }; - export type QueriesMembershipsArgs = { - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; - export type QueriesOrderArgs = { - orderId: Scalars['ID']['input']; + orderId: Scalars["ID"]["input"]; }; - export type QueriesOrdersByStatusArgs = { - productId: Scalars['ID']['input']; - status: Scalars['String']['input']; + productId: Scalars["ID"]["input"]; + status: Scalars["String"]["input"]; }; - export type QueriesOrganizationArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueriesPaginatedShopOrdersArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; - export type QueriesProductArgs = { - productId: Scalars['ID']['input']; + productId: Scalars["ID"]["input"]; }; - export type QueriesResponseArgs = { - formId: Scalars['ID']['input']; - responseId?: InputMaybe; + formId: Scalars["ID"]["input"]; + responseId?: InputMaybe; }; - export type QueriesResponsesArgs = { - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; }; - export type QueriesSignUpsArgs = { - eventId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; }; /** A question on a form. */ export type QuestionType = { - __typename?: 'QuestionType'; + __typename?: "QuestionType"; answer?: Maybe; answers?: Maybe>; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - mandatory: Scalars['Boolean']['output']; + description: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + mandatory: Scalars["Boolean"]["output"]; options?: Maybe>; - question: Scalars['String']['output']; + question: Scalars["String"]["output"]; questionType?: Maybe; }; - /** A question on a form. */ export type QuestionTypeAnswersArgs = { - userId?: InputMaybe; + userId?: InputMaybe; }; export enum QuestionTypeEnum { - Checkboxes = 'CHECKBOXES', - Dropdown = 'DROPDOWN', - FileUpload = 'FILE_UPLOAD', - MultipleChoice = 'MULTIPLE_CHOICE', - Paragraph = 'PARAGRAPH', - ShortAnswer = 'SHORT_ANSWER', - Slider = 'SLIDER' + Checkboxes = "CHECKBOXES", + Dropdown = "DROPDOWN", + FileUpload = "FILE_UPLOAD", + MultipleChoice = "MULTIPLE_CHOICE", + Paragraph = "PARAGRAPH", + ShortAnswer = "SHORT_ANSWER", + Slider = "SLIDER", } /** An enumeration. */ export enum ResponseStatus { /** Red */ - A_0 = 'A_0', + A_0 = "A_0", /** Yellow */ - A_1 = 'A_1', + A_1 = "A_1", /** Green */ - A_2 = 'A_2', + A_2 = "A_2", /** Unknown */ - None = 'NONE' + None = "NONE", } /** A response instance that contains information about a user's response to a form. */ export type ResponseType = { - __typename?: 'ResponseType'; + __typename?: "ResponseType"; answers: Array; form: FormType; - id?: Maybe; + id?: Maybe; questions?: Maybe>; respondent: UserType; status?: Maybe; - uuid: Scalars['UUID']['output']; + uuid: Scalars["UUID"]["output"]; }; export type ResponsibleGroupType = { - __typename?: 'ResponsibleGroupType'; - description?: Maybe; - groupType: Scalars['String']['output']; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; + __typename?: "ResponsibleGroupType"; + description?: Maybe; + groupType: Scalars["String"]["output"]; + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; organization: OrganizationType; - uuid: Scalars['UUID']['output']; + uuid: Scalars["UUID"]["output"]; }; /** Sends email to the user or an admin (or both) */ export type SendEmail = { - __typename?: 'SendEmail'; - ok?: Maybe; + __typename?: "SendEmail"; + ok?: Maybe; }; /** Send an email to all users signed up to an event */ export type SendEventEmails = { - __typename?: 'SendEventEmails'; - ok?: Maybe; + __typename?: "SendEventEmails"; + ok?: Maybe; }; export type SignUpType = { - __typename?: 'SignUpType'; + __typename?: "SignUpType"; event: EventType; - extraInformation: Scalars['String']['output']; - hasBoughtTicket?: Maybe; - id: Scalars['ID']['output']; - isAttending: Scalars['Boolean']['output']; - timestamp: Scalars['DateTime']['output']; + extraInformation: Scalars["String"]["output"]; + hasBoughtTicket?: Maybe; + id: Scalars["ID"]["output"]; + isAttending: Scalars["Boolean"]["output"]; + timestamp: Scalars["DateTime"]["output"]; user: UserType; - userAllergies?: Maybe; - userEmail: Scalars['String']['output']; - userGradeYear: Scalars['Int']['output']; - userPhoneNumber: Scalars['String']['output']; + userAllergies?: Maybe; + userEmail: Scalars["String"]["output"]; + userGradeYear: Scalars["Int"]["output"]; + userPhoneNumber: Scalars["String"]["output"]; }; export type SubmitOrUpdateAnswers = { - __typename?: 'SubmitOrUpdateAnswers'; - message?: Maybe; - ok?: Maybe; + __typename?: "SubmitOrUpdateAnswers"; + message?: Maybe; + ok?: Maybe; }; export type UpdateArchiveDocument = { - __typename?: 'UpdateArchiveDocument'; + __typename?: "UpdateArchiveDocument"; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlog = { - __typename?: 'UpdateBlog'; + __typename?: "UpdateBlog"; blog?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlogInput = { - description?: InputMaybe; - id: Scalars['ID']['input']; - name?: InputMaybe; - organizationId?: InputMaybe; + description?: InputMaybe; + id: Scalars["ID"]["input"]; + name?: InputMaybe; + organizationId?: InputMaybe; }; export type UpdateBlogPost = { - __typename?: 'UpdateBlogPost'; + __typename?: "UpdateBlogPost"; blogPost?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBlogPostInput = { - blogId?: InputMaybe; - id: Scalars['ID']['input']; - text?: InputMaybe; - title?: InputMaybe; + blogId?: InputMaybe; + id: Scalars["ID"]["input"]; + text?: InputMaybe; + title?: InputMaybe; }; /** Change the given booking */ export type UpdateBooking = { - __typename?: 'UpdateBooking'; + __typename?: "UpdateBooking"; booking?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBookingInput = { - cabins?: InputMaybe>; - checkIn?: InputMaybe; - checkOut?: InputMaybe; - declineReason?: InputMaybe; - externalParticipants?: InputMaybe; - extraInfo?: InputMaybe; - firstName?: InputMaybe; - id: Scalars['ID']['input']; - internalParticipants?: InputMaybe; - isDeclined?: InputMaybe; - isTentative?: InputMaybe; - lastName?: InputMaybe; - phone?: InputMaybe; - receiverEmail?: InputMaybe; + cabins?: InputMaybe>; + checkIn?: InputMaybe; + checkOut?: InputMaybe; + declineReason?: InputMaybe; + externalParticipants?: InputMaybe; + extraInfo?: InputMaybe; + firstName?: InputMaybe; + id: Scalars["ID"]["input"]; + internalParticipants?: InputMaybe; + isDeclined?: InputMaybe; + isTentative?: InputMaybe; + lastName?: InputMaybe; + phone?: InputMaybe; + receiverEmail?: InputMaybe; }; /** Update the booking semester */ export type UpdateBookingSemester = { - __typename?: 'UpdateBookingSemester'; + __typename?: "UpdateBookingSemester"; bookingSemester?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateBookingSemesterInput = { - fallEndDate?: InputMaybe; - fallSemesterActive?: InputMaybe; - fallStartDate?: InputMaybe; - springEndDate?: InputMaybe; - springSemesterActive?: InputMaybe; - springStartDate?: InputMaybe; + fallEndDate?: InputMaybe; + fallSemesterActive?: InputMaybe; + fallStartDate?: InputMaybe; + springEndDate?: InputMaybe; + springSemesterActive?: InputMaybe; + springStartDate?: InputMaybe; }; export type UpdateBookingSemesterType = { - __typename?: 'UpdateBookingSemesterType'; - fallEndDate: Scalars['Date']['output']; - fallSemesterActive: Scalars['Boolean']['output']; - fallStartDate: Scalars['Date']['output']; - id: Scalars['ID']['output']; - springEndDate: Scalars['Date']['output']; - springSemesterActive: Scalars['Boolean']['output']; - springStartDate: Scalars['Date']['output']; + __typename?: "UpdateBookingSemesterType"; + fallEndDate: Scalars["Date"]["output"]; + fallSemesterActive: Scalars["Boolean"]["output"]; + fallStartDate: Scalars["Date"]["output"]; + id: Scalars["ID"]["output"]; + springEndDate: Scalars["Date"]["output"]; + springSemesterActive: Scalars["Boolean"]["output"]; + springStartDate: Scalars["Date"]["output"]; }; /** Change the given cabin */ export type UpdateCabin = { - __typename?: 'UpdateCabin'; + __typename?: "UpdateCabin"; cabin?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateCabinInput = { - externalPrice?: InputMaybe; - externalPriceWeekend?: InputMaybe; - id?: InputMaybe; - internalPrice?: InputMaybe; - internalPriceWeekend?: InputMaybe; - maxGuests?: InputMaybe; - name?: InputMaybe; + externalPrice?: InputMaybe; + externalPriceWeekend?: InputMaybe; + id?: InputMaybe; + internalPrice?: InputMaybe; + internalPriceWeekend?: InputMaybe; + maxGuests?: InputMaybe; + name?: InputMaybe; }; /** Updates the category with a given ID with the data in category_data */ export type UpdateCategory = { - __typename?: 'UpdateCategory'; + __typename?: "UpdateCategory"; category?: Maybe; - ok?: Maybe; + ok?: Maybe; }; /** Updates the event with a given ID with the data in event_data */ export type UpdateEvent = { - __typename?: 'UpdateEvent'; + __typename?: "UpdateEvent"; event?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateEventInput = { - allowedGradeYears?: InputMaybe>; - availableSlots?: InputMaybe; - bindingSignup?: InputMaybe; - categoryId?: InputMaybe; - contactEmail?: InputMaybe; - deadline?: InputMaybe; - description?: InputMaybe; - endTime?: InputMaybe; - hasExtraInformation?: InputMaybe; - image?: InputMaybe; - isAttendable?: InputMaybe; - location?: InputMaybe; - organizationId?: InputMaybe; - price?: InputMaybe; - shortDescription?: InputMaybe; - signupOpenDate?: InputMaybe; - startTime?: InputMaybe; - title?: InputMaybe; + allowedGradeYears?: InputMaybe>; + availableSlots?: InputMaybe; + bindingSignup?: InputMaybe; + categoryId?: InputMaybe; + contactEmail?: InputMaybe; + deadline?: InputMaybe; + description?: InputMaybe; + endTime?: InputMaybe; + hasExtraInformation?: InputMaybe; + image?: InputMaybe; + isAttendable?: InputMaybe; + location?: InputMaybe; + organizationId?: InputMaybe; + price?: InputMaybe; + shortDescription?: InputMaybe; + signupOpenDate?: InputMaybe; + startTime?: InputMaybe; + title?: InputMaybe; }; export type UpdateForm = { - __typename?: 'UpdateForm'; + __typename?: "UpdateForm"; form?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateListing = { - __typename?: 'UpdateListing'; + __typename?: "UpdateListing"; listing?: Maybe; - ok?: Maybe; + ok?: Maybe; }; export type UpdateOrganization = { - __typename?: 'UpdateOrganization'; - ok?: Maybe; + __typename?: "UpdateOrganization"; + ok?: Maybe; organization?: Maybe; }; export type UpdateQuestion = { - __typename?: 'UpdateQuestion'; - ok?: Maybe; + __typename?: "UpdateQuestion"; + ok?: Maybe; question?: Maybe; }; export type UpdateUser = { - __typename?: 'UpdateUser'; + __typename?: "UpdateUser"; user?: Maybe; }; export type UserAttendingType = { - __typename?: 'UserAttendingType'; - hasBoughtTicket?: Maybe; - isOnWaitingList?: Maybe; - isSignedUp?: Maybe; - positionOnWaitingList?: Maybe; + __typename?: "UserAttendingType"; + hasBoughtTicket?: Maybe; + isOnWaitingList?: Maybe; + isSignedUp?: Maybe; + positionOnWaitingList?: Maybe; }; export type UserInput = { - allergies?: InputMaybe; - email?: InputMaybe; - firstName?: InputMaybe; - graduationYear?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; + allergies?: InputMaybe; + email?: InputMaybe; + firstName?: InputMaybe; + graduationYear?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; }; export type UserType = { - __typename?: 'UserType'; - allergies?: Maybe; - canUpdateYear?: Maybe; - dateJoined: Scalars['DateTime']['output']; - email: Scalars['String']['output']; + __typename?: "UserType"; + allergies?: Maybe; + canUpdateYear?: Maybe; + dateJoined: Scalars["DateTime"]["output"]; + email: Scalars["String"]["output"]; events?: Maybe>; - feideEmail: Scalars['String']['output']; - feideUserid: Scalars['String']['output']; - firstLogin: Scalars['Boolean']['output']; - firstName: Scalars['String']['output']; - gradeYear?: Maybe; - graduationYear?: Maybe; - id: Scalars['ID']['output']; - idToken: Scalars['String']['output']; - lastLogin?: Maybe; - lastName: Scalars['String']['output']; + feideEmail: Scalars["String"]["output"]; + feideUserid: Scalars["String"]["output"]; + firstLogin: Scalars["Boolean"]["output"]; + firstName: Scalars["String"]["output"]; + gradeYear?: Maybe; + graduationYear?: Maybe; + id: Scalars["ID"]["output"]; + idToken: Scalars["String"]["output"]; + lastLogin?: Maybe; + lastName: Scalars["String"]["output"]; memberships: Array; organizations: Array; - phoneNumber: Scalars['String']['output']; + phoneNumber: Scalars["String"]["output"]; responses: Array; /** Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. */ - username: Scalars['String']['output']; - yearUpdatedAt?: Maybe; + username: Scalars["String"]["output"]; + yearUpdatedAt?: Maybe; }; export type ArchiveByTypesQueryVariables = Exact<{ - documentTypes: Array> | InputMaybe; - year?: InputMaybe; - names?: InputMaybe; + documentTypes: Array> | InputMaybe; + year?: InputMaybe; + names?: InputMaybe; }>; - -export type ArchiveByTypesQuery = { __typename?: 'Queries', archiveByTypes: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; - -export type FeaturedArchiveQueryVariables = Exact<{ [key: string]: never; }>; - - -export type FeaturedArchiveQuery = { __typename?: 'Queries', featuredArchive: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; - -export type AvailableYearsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AvailableYearsQuery = { __typename?: 'Queries', availableYears: Array }; - -export type DocumentFragment = { __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }; +export type ArchiveByTypesQuery = { + __typename?: "Queries"; + archiveByTypes: Array<{ + __typename?: "ArchiveDocumentType"; + id: string; + title: string; + thumbnail?: string | null; + typeDoc: ArchiveDocumentTypeDoc; + year?: number | null; + webLink?: string | null; + }>; +}; + +export type FeaturedArchiveQueryVariables = Exact<{ [key: string]: never }>; + +export type FeaturedArchiveQuery = { + __typename?: "Queries"; + featuredArchive: Array<{ + __typename?: "ArchiveDocumentType"; + id: string; + title: string; + thumbnail?: string | null; + typeDoc: ArchiveDocumentTypeDoc; + year?: number | null; + webLink?: string | null; + }>; +}; + +export type AvailableYearsQueryVariables = Exact<{ [key: string]: never }>; + +export type AvailableYearsQuery = { __typename?: "Queries"; availableYears: Array }; + +export type DocumentFragment = { + __typename?: "ArchiveDocumentType"; + id: string; + title: string; + thumbnail?: string | null; + typeDoc: ArchiveDocumentTypeDoc; + year?: number | null; + webLink?: string | null; +}; export type DocumentsQueryVariables = Exact<{ - documentTypes: Array | Scalars['String']['input']; - year?: InputMaybe; - names?: InputMaybe; + documentTypes: Array | Scalars["String"]["input"]; + year?: InputMaybe; + names?: InputMaybe; }>; - -export type DocumentsQuery = { __typename?: 'Queries', availableYears: Array, hasPermission?: boolean | null, archiveByTypes: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }>, featuredArchive: Array<{ __typename?: 'ArchiveDocumentType', id: string, title: string, thumbnail?: string | null, typeDoc: ArchiveDocumentTypeDoc, year?: number | null, webLink?: string | null }> }; - -export type CabinFragment = { __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }; - -export type BookingFragment = { __typename?: 'AllBookingsType', id: string, checkIn: string, checkOut: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }; - -export type AdminBookingFragment = { __typename?: 'AdminBookingType', id: string, checkIn: string, checkOut: string, firstName: string, lastName: string, phone: string, receiverEmail: string, externalParticipants: number, internalParticipants: number, price?: number | null, isTentative: boolean, isDeclined: boolean, timestamp: string, extraInfo: string, declineReason: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }; - -export type BookingResponsibleFragment = { __typename?: 'BookingResponsibleType', id: string, active?: boolean | null, firstName?: string | null, lastName?: string | null, email?: string | null, phone?: number | null }; - -export type BookingSemesterFragment = { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean }; +export type DocumentsQuery = { + __typename?: "Queries"; + availableYears: Array; + hasPermission?: boolean | null; + archiveByTypes: Array<{ + __typename?: "ArchiveDocumentType"; + id: string; + title: string; + thumbnail?: string | null; + typeDoc: ArchiveDocumentTypeDoc; + year?: number | null; + webLink?: string | null; + }>; + featuredArchive: Array<{ + __typename?: "ArchiveDocumentType"; + id: string; + title: string; + thumbnail?: string | null; + typeDoc: ArchiveDocumentTypeDoc; + year?: number | null; + webLink?: string | null; + }>; +}; + +export type CabinFragment = { + __typename?: "CabinType"; + id: string; + name: string; + maxGuests: number; + internalPrice: number; + externalPrice: number; + internalPriceWeekend: number; + externalPriceWeekend: number; +}; + +export type BookingFragment = { + __typename?: "AllBookingsType"; + id: string; + checkIn: string; + checkOut: string; + cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; +}; + +export type AdminBookingFragment = { + __typename?: "AdminBookingType"; + id: string; + checkIn: string; + checkOut: string; + firstName: string; + lastName: string; + phone: string; + receiverEmail: string; + externalParticipants: number; + internalParticipants: number; + price?: number | null; + isTentative: boolean; + isDeclined: boolean; + timestamp: string; + extraInfo: string; + declineReason: string; + cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; +}; + +export type BookingResponsibleFragment = { + __typename?: "BookingResponsibleType"; + id: string; + active?: boolean | null; + firstName?: string | null; + lastName?: string | null; + email?: string | null; + phone?: number | null; +}; + +export type BookingSemesterFragment = { + __typename?: "UpdateBookingSemesterType"; + fallStartDate: string; + fallEndDate: string; + springStartDate: string; + springEndDate: string; + fallSemesterActive: boolean; + springSemesterActive: boolean; +}; export type CreateBookingMutationVariables = Exact<{ bookingData: BookingInput; }>; - -export type CreateBookingMutation = { __typename?: 'Mutations', createBooking?: { __typename?: 'CreateBooking', ok?: boolean | null } | null }; +export type CreateBookingMutation = { + __typename?: "Mutations"; + createBooking?: { __typename?: "CreateBooking"; ok?: boolean | null } | null; +}; export type ConfirmBookingMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type ConfirmBookingMutation = { __typename?: 'Mutations', updateBooking?: { __typename?: 'UpdateBooking', ok?: boolean | null } | null }; +export type ConfirmBookingMutation = { + __typename?: "Mutations"; + updateBooking?: { __typename?: "UpdateBooking"; ok?: boolean | null } | null; +}; export type DeclineBookingMutationVariables = Exact<{ - id: Scalars['ID']['input']; - declineReason?: InputMaybe; + id: Scalars["ID"]["input"]; + declineReason?: InputMaybe; }>; - -export type DeclineBookingMutation = { __typename?: 'Mutations', updateBooking?: { __typename?: 'UpdateBooking', ok?: boolean | null } | null }; +export type DeclineBookingMutation = { + __typename?: "Mutations"; + updateBooking?: { __typename?: "UpdateBooking"; ok?: boolean | null } | null; +}; export type SendEmailMutationVariables = Exact<{ emailInput: EmailInput; }>; - -export type SendEmailMutation = { __typename?: 'Mutations', sendEmail?: { __typename?: 'SendEmail', ok?: boolean | null } | null }; +export type SendEmailMutation = { + __typename?: "Mutations"; + sendEmail?: { __typename?: "SendEmail"; ok?: boolean | null } | null; +}; export type UpdateCabinMutationVariables = Exact<{ cabinData: UpdateCabinInput; }>; - -export type UpdateCabinMutation = { __typename?: 'Mutations', updateCabin?: { __typename?: 'UpdateCabin', cabin?: { __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number } | null } | null }; +export type UpdateCabinMutation = { + __typename?: "Mutations"; + updateCabin?: { + __typename?: "UpdateCabin"; + cabin?: { + __typename?: "CabinType"; + id: string; + name: string; + maxGuests: number; + internalPrice: number; + externalPrice: number; + internalPriceWeekend: number; + externalPriceWeekend: number; + } | null; + } | null; +}; export type UpdateBookingSemesterMutationVariables = Exact<{ semesterData: UpdateBookingSemesterInput; }>; - -export type UpdateBookingSemesterMutation = { __typename?: 'Mutations', updateBookingSemester?: { __typename?: 'UpdateBookingSemester', bookingSemester?: { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean } | null } | null }; - -export type CabinsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type CabinsQuery = { __typename?: 'Queries', cabins?: Array<{ __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }> | null }; - -export type AllBookingsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AllBookingsQuery = { __typename?: 'Queries', allBookings?: Array<{ __typename?: 'AllBookingsType', id: string, checkIn: string, checkOut: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }> | null }; +export type UpdateBookingSemesterMutation = { + __typename?: "Mutations"; + updateBookingSemester?: { + __typename?: "UpdateBookingSemester"; + bookingSemester?: { + __typename?: "UpdateBookingSemesterType"; + fallStartDate: string; + fallEndDate: string; + springStartDate: string; + springEndDate: string; + fallSemesterActive: boolean; + springSemesterActive: boolean; + } | null; + } | null; +}; + +export type CabinsQueryVariables = Exact<{ [key: string]: never }>; + +export type CabinsQuery = { + __typename?: "Queries"; + cabins?: Array<{ + __typename?: "CabinType"; + id: string; + name: string; + maxGuests: number; + internalPrice: number; + externalPrice: number; + internalPriceWeekend: number; + externalPriceWeekend: number; + }> | null; +}; + +export type AllBookingsQueryVariables = Exact<{ [key: string]: never }>; + +export type AllBookingsQuery = { + __typename?: "Queries"; + allBookings?: Array<{ + __typename?: "AllBookingsType"; + id: string; + checkIn: string; + checkOut: string; + cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; + }> | null; +}; export type AdminAllBookingsQueryVariables = Exact<{ - after?: InputMaybe; + after?: InputMaybe; }>; - -export type AdminAllBookingsQuery = { __typename?: 'Queries', adminAllBookings?: Array<{ __typename?: 'AdminBookingType', id: string, checkIn: string, checkOut: string, firstName: string, lastName: string, phone: string, receiverEmail: string, externalParticipants: number, internalParticipants: number, price?: number | null, isTentative: boolean, isDeclined: boolean, timestamp: string, extraInfo: string, declineReason: string, cabins: Array<{ __typename?: 'CabinType', id: string, name: string }> }> | null }; - -export type ActiveBookingResponsibleQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ActiveBookingResponsibleQuery = { __typename?: 'Queries', activeBookingResponsible?: { __typename?: 'BookingResponsibleType', id: string, active?: boolean | null, firstName?: string | null, lastName?: string | null, email?: string | null, phone?: number | null } | null }; - -export type CabinsAndResponsiblesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type CabinsAndResponsiblesQuery = { __typename?: 'Queries', cabins?: Array<{ __typename?: 'CabinType', id: string, name: string, maxGuests: number, internalPrice: number, externalPrice: number, internalPriceWeekend: number, externalPriceWeekend: number }> | null, activeBookingResponsible?: { __typename?: 'BookingResponsibleType', id: string, email?: string | null } | null }; - -export type BookingSemesterQueryVariables = Exact<{ [key: string]: never; }>; - - -export type BookingSemesterQuery = { __typename?: 'Queries', bookingSemester?: { __typename?: 'UpdateBookingSemesterType', fallStartDate: string, fallEndDate: string, springStartDate: string, springEndDate: string, fallSemesterActive: boolean, springSemesterActive: boolean } | null }; - -export type ProductFragment = { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }; - -export type OrderFragment = { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }; +export type AdminAllBookingsQuery = { + __typename?: "Queries"; + adminAllBookings?: Array<{ + __typename?: "AdminBookingType"; + id: string; + checkIn: string; + checkOut: string; + firstName: string; + lastName: string; + phone: string; + receiverEmail: string; + externalParticipants: number; + internalParticipants: number; + price?: number | null; + isTentative: boolean; + isDeclined: boolean; + timestamp: string; + extraInfo: string; + declineReason: string; + cabins: Array<{ __typename?: "CabinType"; id: string; name: string }>; + }> | null; +}; + +export type ActiveBookingResponsibleQueryVariables = Exact<{ [key: string]: never }>; + +export type ActiveBookingResponsibleQuery = { + __typename?: "Queries"; + activeBookingResponsible?: { + __typename?: "BookingResponsibleType"; + id: string; + active?: boolean | null; + firstName?: string | null; + lastName?: string | null; + email?: string | null; + phone?: number | null; + } | null; +}; + +export type CabinsAndResponsiblesQueryVariables = Exact<{ [key: string]: never }>; + +export type CabinsAndResponsiblesQuery = { + __typename?: "Queries"; + cabins?: Array<{ + __typename?: "CabinType"; + id: string; + name: string; + maxGuests: number; + internalPrice: number; + externalPrice: number; + internalPriceWeekend: number; + externalPriceWeekend: number; + }> | null; + activeBookingResponsible?: { __typename?: "BookingResponsibleType"; id: string; email?: string | null } | null; +}; + +export type BookingSemesterQueryVariables = Exact<{ [key: string]: never }>; + +export type BookingSemesterQuery = { + __typename?: "Queries"; + bookingSemester?: { + __typename?: "UpdateBookingSemesterType"; + fallStartDate: string; + fallEndDate: string; + springStartDate: string; + springEndDate: string; + fallSemesterActive: boolean; + springSemesterActive: boolean; + } | null; +}; + +export type ProductFragment = { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; +}; + +export type OrderFragment = { + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; +}; export type InitiateOrderMutationVariables = Exact<{ - productId: Scalars['ID']['input']; - quantity?: InputMaybe; - fallbackRedirect?: InputMaybe; + productId: Scalars["ID"]["input"]; + quantity?: InputMaybe; + fallbackRedirect?: InputMaybe; }>; - -export type InitiateOrderMutation = { __typename?: 'Mutations', initiateOrder?: { __typename?: 'InitiateOrder', redirect?: string | null, orderId?: string | null } | null }; +export type InitiateOrderMutation = { + __typename?: "Mutations"; + initiateOrder?: { __typename?: "InitiateOrder"; redirect?: string | null; orderId?: string | null } | null; +}; export type AttemptCapturePaymentMutationVariables = Exact<{ - orderId: Scalars['ID']['input']; + orderId: Scalars["ID"]["input"]; }>; - -export type AttemptCapturePaymentMutation = { __typename?: 'Mutations', attemptCapturePayment?: { __typename?: 'AttemptCapturePayment', status?: PaymentStatus | null, order?: { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } } | null } | null }; +export type AttemptCapturePaymentMutation = { + __typename?: "Mutations"; + attemptCapturePayment?: { + __typename?: "AttemptCapturePayment"; + status?: PaymentStatus | null; + order?: { + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; + } | null; + } | null; +}; export type DeliveredProductMutationVariables = Exact<{ - orderId: Scalars['ID']['input']; + orderId: Scalars["ID"]["input"]; }>; - -export type DeliveredProductMutation = { __typename?: 'Mutations', deliveredProduct?: { __typename?: 'DeliveredProduct', order?: { __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } } | null } | null }; +export type DeliveredProductMutation = { + __typename?: "Mutations"; + deliveredProduct?: { + __typename?: "DeliveredProduct"; + order?: { + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; + } | null; + } | null; +}; export type ProductQueryVariables = Exact<{ - productId: Scalars['ID']['input']; + productId: Scalars["ID"]["input"]; }>; - -export type ProductQuery = { __typename?: 'Queries', product?: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean } | null }; - -export type ProductsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ProductsQuery = { __typename?: 'Queries', products?: Array<{ __typename?: 'ProductType', id: string, name: string, price: number, description: string, maxBuyableQuantity: number, shopItem: boolean }> | null }; - -export type UserOrdersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserOrdersQuery = { __typename?: 'Queries', userOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; - -export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AllUserOrdersQuery = { __typename?: 'Queries', allUserOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; +export type ProductQuery = { + __typename?: "Queries"; + product?: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + } | null; +}; + +export type ProductsQueryVariables = Exact<{ [key: string]: never }>; + +export type ProductsQuery = { + __typename?: "Queries"; + products?: Array<{ + __typename?: "ProductType"; + id: string; + name: string; + price: number; + description: string; + maxBuyableQuantity: number; + shopItem: boolean; + }> | null; +}; + +export type UserOrdersQueryVariables = Exact<{ [key: string]: never }>; + +export type UserOrdersQuery = { + __typename?: "Queries"; + userOrders?: Array<{ + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; + }> | null; +}; + +export type AllUserOrdersQueryVariables = Exact<{ [key: string]: never }>; + +export type AllUserOrdersQuery = { + __typename?: "Queries"; + allUserOrders?: Array<{ + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; + }> | null; +}; export type PaginatedShopOrdersQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }>; - -export type PaginatedShopOrdersQuery = { __typename?: 'Queries', paginatedShopOrders?: Array<{ __typename?: 'OrderType', id: string, quantity: number, totalPrice: number, paymentStatus: PaymentStatus, timestamp: string, deliveredProduct: boolean, product: { __typename?: 'ProductType', id: string, name: string, description: string, price: number, maxBuyableQuantity: number, shopItem: boolean }, user: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string } }> | null }; - -export type EventFieldsFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }; - -export type EventDetailFieldsFragment = { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } }; - -export type AdminEventFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, endTime?: string | null, location?: string | null, description: string, image?: string | null, isAttendable: boolean, deadline?: string | null, availableSlots?: number | null, price?: number | null, shortDescription?: string | null, signupOpenDate?: string | null, isFull?: boolean | null, hasExtraInformation: boolean, bindingSignup: boolean, contactEmail: string, allowedGradeYears?: Array | null, organization: { __typename?: 'OrganizationType', id: string, name: string }, category?: { __typename?: 'CategoryType', id: string, name: string } | null, publisher?: { __typename?: 'UserType', id: string, username: string, email: string, firstName: string, lastName: string, dateJoined: string } | null, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, usersOnWaitingList?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, product?: { __typename?: 'ProductType', id: string } | null }; - -export type SignUpFragment = { __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }; - -export type SignUpWithTicketFragment = { __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }; +export type PaginatedShopOrdersQuery = { + __typename?: "Queries"; + paginatedShopOrders?: Array<{ + __typename?: "OrderType"; + id: string; + quantity: number; + totalPrice: number; + paymentStatus: PaymentStatus; + timestamp: string; + deliveredProduct: boolean; + product: { + __typename?: "ProductType"; + id: string; + name: string; + description: string; + price: number; + maxBuyableQuantity: number; + shopItem: boolean; + }; + user: { __typename?: "UserType"; id: string; username: string; firstName: string; lastName: string }; + }> | null; +}; + +export type EventFieldsFragment = { + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + allowedGradeYears?: Array | null; + isFull?: boolean | null; + isAttendable: boolean; + signupOpenDate?: string | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; +}; + +export type EventDetailFieldsFragment = { + __typename?: "EventType"; + id: string; + title: string; + description: string; + shortDescription?: string | null; + startTime: string; + endTime?: string | null; + location?: string | null; + contactEmail: string; + allowedGradeYears?: Array | null; + hasExtraInformation: boolean; + isFull?: boolean | null; + signupOpenDate?: string | null; + deadline?: string | null; + isAttendable: boolean; + bindingSignup: boolean; + price?: number | null; + product?: { __typename?: "ProductType"; id: string } | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + positionOnWaitingList?: number | null; + hasBoughtTicket?: boolean | null; + } | null; + category?: { __typename?: "CategoryType"; id: string; name: string } | null; + organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; +}; + +export type AdminEventFragment = { + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + endTime?: string | null; + location?: string | null; + description: string; + image?: string | null; + isAttendable: boolean; + deadline?: string | null; + availableSlots?: number | null; + price?: number | null; + shortDescription?: string | null; + signupOpenDate?: string | null; + isFull?: boolean | null; + hasExtraInformation: boolean; + bindingSignup: boolean; + contactEmail: string; + allowedGradeYears?: Array | null; + organization: { __typename?: "OrganizationType"; id: string; name: string }; + category?: { __typename?: "CategoryType"; id: string; name: string } | null; + publisher?: { + __typename?: "UserType"; + id: string; + username: string; + email: string; + firstName: string; + lastName: string; + dateJoined: string; + } | null; + usersAttending?: Array<{ + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + hasBoughtTicket?: boolean | null; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + }> | null; + usersOnWaitingList?: Array<{ + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + }> | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + product?: { __typename?: "ProductType"; id: string } | null; +}; + +export type SignUpFragment = { + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; +}; + +export type SignUpWithTicketFragment = { + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + hasBoughtTicket?: boolean | null; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; +}; export type CreateEventMutationVariables = Exact<{ eventData: CreateEventInput; }>; - -export type CreateEventMutation = { __typename?: 'Mutations', createEvent?: { __typename?: 'CreateEvent', ok?: boolean | null, event?: { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } } | null } | null }; +export type CreateEventMutation = { + __typename?: "Mutations"; + createEvent?: { + __typename?: "CreateEvent"; + ok?: boolean | null; + event?: { + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + allowedGradeYears?: Array | null; + isFull?: boolean | null; + isAttendable: boolean; + signupOpenDate?: string | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; + } | null; + } | null; +}; export type UpdateEventMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; eventData: UpdateEventInput; }>; - -export type UpdateEventMutation = { __typename?: 'Mutations', updateEvent?: { __typename?: 'UpdateEvent', ok?: boolean | null, event?: { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } } | null } | null }; +export type UpdateEventMutation = { + __typename?: "Mutations"; + updateEvent?: { + __typename?: "UpdateEvent"; + ok?: boolean | null; + event?: { + __typename?: "EventType"; + id: string; + title: string; + description: string; + shortDescription?: string | null; + startTime: string; + endTime?: string | null; + location?: string | null; + contactEmail: string; + allowedGradeYears?: Array | null; + hasExtraInformation: boolean; + isFull?: boolean | null; + signupOpenDate?: string | null; + deadline?: string | null; + isAttendable: boolean; + bindingSignup: boolean; + price?: number | null; + product?: { __typename?: "ProductType"; id: string } | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + positionOnWaitingList?: number | null; + hasBoughtTicket?: boolean | null; + } | null; + category?: { __typename?: "CategoryType"; id: string; name: string } | null; + organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; + } | null; + } | null; +}; export type EventSignUpMutationVariables = Exact<{ - eventId: Scalars['ID']['input']; - extraInformation?: InputMaybe; + eventId: Scalars["ID"]["input"]; + extraInformation?: InputMaybe; }>; - -export type EventSignUpMutation = { __typename?: 'Mutations', eventSignUp?: { __typename?: 'EventSignUp', isFull?: boolean | null, event?: { __typename?: 'EventType', id: string, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null } | null } | null } | null }; +export type EventSignUpMutation = { + __typename?: "Mutations"; + eventSignUp?: { + __typename?: "EventSignUp"; + isFull?: boolean | null; + event?: { + __typename?: "EventType"; + id: string; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + positionOnWaitingList?: number | null; + } | null; + } | null; + } | null; +}; export type EventSignOffMutationVariables = Exact<{ - eventId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; }>; - -export type EventSignOffMutation = { __typename?: 'Mutations', eventSignOff?: { __typename?: 'EventSignOff', isFull?: boolean | null, event?: { __typename?: 'EventType', id: string, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null } | null } | null } | null }; +export type EventSignOffMutation = { + __typename?: "Mutations"; + eventSignOff?: { + __typename?: "EventSignOff"; + isFull?: boolean | null; + event?: { + __typename?: "EventType"; + id: string; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + positionOnWaitingList?: number | null; + } | null; + } | null; + } | null; +}; export type AdminEventSignOffMutationVariables = Exact<{ - eventId: Scalars['ID']['input']; - userId: Scalars['ID']['input']; + eventId: Scalars["ID"]["input"]; + userId: Scalars["ID"]["input"]; }>; - -export type AdminEventSignOffMutation = { __typename?: 'Mutations', adminEventSignOff?: { __typename?: 'AdminEventSignOff', event?: { __typename?: 'EventType', id: string } | null } | null }; +export type AdminEventSignOffMutation = { + __typename?: "Mutations"; + adminEventSignOff?: { + __typename?: "AdminEventSignOff"; + event?: { __typename?: "EventType"; id: string } | null; + } | null; +}; export type SendEventMailsMutationVariables = Exact<{ - eventId: Scalars['ID']['input']; - receiverEmails?: InputMaybe | Scalars['String']['input']>; - content?: InputMaybe; - subject: Scalars['String']['input']; + eventId: Scalars["ID"]["input"]; + receiverEmails?: InputMaybe | Scalars["String"]["input"]>; + content?: InputMaybe; + subject: Scalars["String"]["input"]; }>; - -export type SendEventMailsMutation = { __typename?: 'Mutations', sendEventMails?: { __typename?: 'SendEventEmails', ok?: boolean | null } | null }; +export type SendEventMailsMutation = { + __typename?: "Mutations"; + sendEventMails?: { __typename?: "SendEventEmails"; ok?: boolean | null } | null; +}; export type EventsQueryVariables = Exact<{ - organization?: InputMaybe; - category?: InputMaybe; - startTime?: InputMaybe; - endTime?: InputMaybe; + organization?: InputMaybe; + category?: InputMaybe; + startTime?: InputMaybe; + endTime?: InputMaybe; }>; - -export type EventsQuery = { __typename?: 'Queries', hasPermission?: boolean | null, allEvents?: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }> | null, defaultEvents?: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, allowedGradeYears?: Array | null, isFull?: boolean | null, isAttendable: boolean, signupOpenDate?: string | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, organization: { __typename?: 'OrganizationType', id: string, color?: string | null } }> | null, user?: { __typename?: 'UserType', id: string, gradeYear?: number | null } | null }; +export type EventsQuery = { + __typename?: "Queries"; + hasPermission?: boolean | null; + allEvents?: Array<{ + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + allowedGradeYears?: Array | null; + isFull?: boolean | null; + isAttendable: boolean; + signupOpenDate?: string | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; + }> | null; + defaultEvents?: Array<{ + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + allowedGradeYears?: Array | null; + isFull?: boolean | null; + isAttendable: boolean; + signupOpenDate?: string | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + organization: { __typename?: "OrganizationType"; id: string; color?: string | null }; + }> | null; + user?: { __typename?: "UserType"; id: string; gradeYear?: number | null } | null; +}; export type EventDetailsQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type EventDetailsQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', id: string, title: string, description: string, shortDescription?: string | null, startTime: string, endTime?: string | null, location?: string | null, contactEmail: string, allowedGradeYears?: Array | null, hasExtraInformation: boolean, isFull?: boolean | null, signupOpenDate?: string | null, deadline?: string | null, isAttendable: boolean, bindingSignup: boolean, price?: number | null, product?: { __typename?: 'ProductType', id: string } | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null, positionOnWaitingList?: number | null, hasBoughtTicket?: boolean | null } | null, category?: { __typename?: 'CategoryType', id: string, name: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, logoUrl?: string | null } } | null, user?: { __typename?: 'UserType', id: string, organizations: Array<{ __typename?: 'OrganizationType', id: string }> } | null }; - -export type AllCategoriesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AllCategoriesQuery = { __typename?: 'Queries', allCategories?: Array<{ __typename?: 'CategoryType', id: string, name: string }> | null }; - -export type EventFilteredOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type EventFilteredOrganizationsQuery = { __typename?: 'Queries', eventFilteredOrganizations?: Array<{ __typename?: 'OrganizationType', id: string, name: string, color?: string | null, children: Array<{ __typename?: 'OrganizationType', id: string, name: string }> }> | null }; +export type EventDetailsQuery = { + __typename?: "Queries"; + event?: { + __typename?: "EventType"; + id: string; + title: string; + description: string; + shortDescription?: string | null; + startTime: string; + endTime?: string | null; + location?: string | null; + contactEmail: string; + allowedGradeYears?: Array | null; + hasExtraInformation: boolean; + isFull?: boolean | null; + signupOpenDate?: string | null; + deadline?: string | null; + isAttendable: boolean; + bindingSignup: boolean; + price?: number | null; + product?: { __typename?: "ProductType"; id: string } | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + positionOnWaitingList?: number | null; + hasBoughtTicket?: boolean | null; + } | null; + category?: { __typename?: "CategoryType"; id: string; name: string } | null; + organization: { __typename?: "OrganizationType"; id: string; name: string; logoUrl?: string | null }; + } | null; + user?: { + __typename?: "UserType"; + id: string; + organizations: Array<{ __typename?: "OrganizationType"; id: string }>; + } | null; +}; + +export type AllCategoriesQueryVariables = Exact<{ [key: string]: never }>; + +export type AllCategoriesQuery = { + __typename?: "Queries"; + allCategories?: Array<{ __typename?: "CategoryType"; id: string; name: string }> | null; +}; + +export type EventFilteredOrganizationsQueryVariables = Exact<{ [key: string]: never }>; + +export type EventFilteredOrganizationsQuery = { + __typename?: "Queries"; + eventFilteredOrganizations?: Array<{ + __typename?: "OrganizationType"; + id: string; + name: string; + color?: string | null; + children: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; + }> | null; +}; export type AdminEventQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type AdminEventQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', id: string, title: string, startTime: string, endTime?: string | null, location?: string | null, description: string, image?: string | null, isAttendable: boolean, deadline?: string | null, availableSlots?: number | null, price?: number | null, shortDescription?: string | null, signupOpenDate?: string | null, isFull?: boolean | null, hasExtraInformation: boolean, bindingSignup: boolean, contactEmail: string, allowedGradeYears?: Array | null, organization: { __typename?: 'OrganizationType', id: string, name: string }, category?: { __typename?: 'CategoryType', id: string, name: string } | null, publisher?: { __typename?: 'UserType', id: string, username: string, email: string, firstName: string, lastName: string, dateJoined: string } | null, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, hasBoughtTicket?: boolean | null, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, usersOnWaitingList?: Array<{ __typename?: 'SignUpType', userEmail: string, userGradeYear: number, userAllergies?: string | null, userPhoneNumber: string, extraInformation: string, user: { __typename?: 'UserType', id: string, firstName: string, lastName: string } }> | null, userAttendance?: { __typename?: 'UserAttendingType', isSignedUp?: boolean | null, isOnWaitingList?: boolean | null } | null, product?: { __typename?: 'ProductType', id: string } | null } | null }; +export type AdminEventQuery = { + __typename?: "Queries"; + event?: { + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + endTime?: string | null; + location?: string | null; + description: string; + image?: string | null; + isAttendable: boolean; + deadline?: string | null; + availableSlots?: number | null; + price?: number | null; + shortDescription?: string | null; + signupOpenDate?: string | null; + isFull?: boolean | null; + hasExtraInformation: boolean; + bindingSignup: boolean; + contactEmail: string; + allowedGradeYears?: Array | null; + organization: { __typename?: "OrganizationType"; id: string; name: string }; + category?: { __typename?: "CategoryType"; id: string; name: string } | null; + publisher?: { + __typename?: "UserType"; + id: string; + username: string; + email: string; + firstName: string; + lastName: string; + dateJoined: string; + } | null; + usersAttending?: Array<{ + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + hasBoughtTicket?: boolean | null; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + }> | null; + usersOnWaitingList?: Array<{ + __typename?: "SignUpType"; + userEmail: string; + userGradeYear: number; + userAllergies?: string | null; + userPhoneNumber: string; + extraInformation: string; + user: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + }> | null; + userAttendance?: { + __typename?: "UserAttendingType"; + isSignedUp?: boolean | null; + isOnWaitingList?: boolean | null; + } | null; + product?: { __typename?: "ProductType"; id: string } | null; + } | null; +}; export type EventSignUpsQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type EventSignUpsQuery = { __typename?: 'Queries', event?: { __typename?: 'EventType', isAttendable: boolean, usersAttending?: Array<{ __typename?: 'SignUpType', userEmail: string }> | null } | null }; +export type EventSignUpsQuery = { + __typename?: "Queries"; + event?: { + __typename?: "EventType"; + isAttendable: boolean; + usersAttending?: Array<{ __typename?: "SignUpType"; userEmail: string }> | null; + } | null; +}; export type AttendeeReportQueryVariables = Exact<{ - eventId: Scalars['ID']['input']; - fields?: InputMaybe | Scalars['String']['input']>; - filetype?: InputMaybe; + eventId: Scalars["ID"]["input"]; + fields?: InputMaybe | Scalars["String"]["input"]>; + filetype?: InputMaybe; }>; - -export type AttendeeReportQuery = { __typename?: 'Queries', attendeeReport?: string | null }; +export type AttendeeReportQuery = { __typename?: "Queries"; attendeeReport?: string | null }; export type AttendeeReportOrgQueryVariables = Exact<{ - orgId: Scalars['ID']['input']; - fields?: InputMaybe | Scalars['String']['input']>; - filetype?: InputMaybe; + orgId: Scalars["ID"]["input"]; + fields?: InputMaybe | Scalars["String"]["input"]>; + filetype?: InputMaybe; }>; - -export type AttendeeReportOrgQuery = { __typename?: 'Queries', attendeeReportOrg?: string | null }; +export type AttendeeReportOrgQuery = { __typename?: "Queries"; attendeeReportOrg?: string | null }; export type AttendeeReportsQueryVariables = Exact<{ - eventIds: Array | Scalars['ID']['input']; - fields?: InputMaybe | Scalars['String']['input']>; - filetype?: InputMaybe; + eventIds: Array | Scalars["ID"]["input"]; + fields?: InputMaybe | Scalars["String"]["input"]>; + filetype?: InputMaybe; }>; - -export type AttendeeReportsQuery = { __typename?: 'Queries', attendeeReports?: string | null }; - -export type EventUserOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type EventUserOrganizationsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, organizations: Array<{ __typename?: 'OrganizationType', id: string }> } | null }; - -export type FormFragment = { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> }; - -export type FormWithAnswersFragment = { __typename?: 'FormType', id: string, name: string, description: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> }; - -export type FormWithAllResponsesFragment = { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null }; - -export type ResponseFragment = { __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }; - -export type QuestionFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; - -export type QuestionWithAnswerFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; - -export type QuestionWithAnswerIdsFragment = { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }; - -export type OptionFragment = { __typename?: 'OptionType', id: string, answer: string }; - -export type AnswerFragment = { __typename?: 'AnswerType', id?: string | null, answer: string }; - -export type AnswerWithQuestionIdFragment = { __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }; +export type AttendeeReportsQuery = { __typename?: "Queries"; attendeeReports?: string | null }; + +export type EventUserOrganizationsQueryVariables = Exact<{ [key: string]: never }>; + +export type EventUserOrganizationsQuery = { + __typename?: "Queries"; + user?: { + __typename?: "UserType"; + id: string; + organizations: Array<{ __typename?: "OrganizationType"; id: string }>; + } | null; +}; + +export type FormFragment = { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; +}; + +export type FormWithAnswersFragment = { + __typename?: "FormType"; + id: string; + name: string; + description: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; +}; + +export type FormWithAllResponsesFragment = { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; +}; + +export type ResponseFragment = { + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; +}; + +export type QuestionFragment = { + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; +}; + +export type QuestionWithAnswerFragment = { + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; +}; + +export type QuestionWithAnswerIdsFragment = { + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; +}; + +export type OptionFragment = { __typename?: "OptionType"; id: string; answer: string }; + +export type AnswerFragment = { __typename?: "AnswerType"; id?: string | null; answer: string }; + +export type AnswerWithQuestionIdFragment = { + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; +}; export type CreateFormMutationVariables = Exact<{ formData: CreateFormInput; - listingId?: InputMaybe; + listingId?: InputMaybe; }>; - -export type CreateFormMutation = { __typename?: 'Mutations', createForm?: { __typename?: 'CreateForm', ok?: boolean | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null } | null }; +export type CreateFormMutation = { + __typename?: "Mutations"; + createForm?: { + __typename?: "CreateForm"; + ok?: boolean | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; + } | null; + } | null; +}; export type UpdateFormMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; formData: BaseFormInput; }>; - -export type UpdateFormMutation = { __typename?: 'Mutations', updateForm?: { __typename?: 'UpdateForm', ok?: boolean | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null } | null }; +export type UpdateFormMutation = { + __typename?: "Mutations"; + updateForm?: { + __typename?: "UpdateForm"; + ok?: boolean | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; + } | null; + } | null; +}; export type CreateQuestionMutationVariables = Exact<{ - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; questionData: CreateQuestionInput; }>; - -export type CreateQuestionMutation = { __typename?: 'Mutations', createQuestion?: { __typename?: 'CreateQuestion', ok?: boolean | null, question?: { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null } | null } | null }; +export type CreateQuestionMutation = { + __typename?: "Mutations"; + createQuestion?: { + __typename?: "CreateQuestion"; + ok?: boolean | null; + question?: { + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + } | null; + } | null; +}; export type UpdateQuestionMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; questionData: BaseQuestionInput; optionData?: InputMaybe | OptionInput>; }>; - -export type UpdateQuestionMutation = { __typename?: 'Mutations', createUpdateAndDeleteOptions?: { __typename?: 'CreateUpdateAndDeleteOptions', ok?: boolean | null } | null, updateQuestion?: { __typename?: 'UpdateQuestion', ok?: boolean | null, question?: { __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null } | null } | null }; +export type UpdateQuestionMutation = { + __typename?: "Mutations"; + createUpdateAndDeleteOptions?: { __typename?: "CreateUpdateAndDeleteOptions"; ok?: boolean | null } | null; + updateQuestion?: { + __typename?: "UpdateQuestion"; + ok?: boolean | null; + question?: { + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + } | null; + } | null; +}; export type DeleteQuestionMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type DeleteQuestionMutation = { __typename?: 'Mutations', deleteQuestion?: { __typename?: 'DeleteQuestion', deletedId?: string | null, ok?: boolean | null } | null }; +export type DeleteQuestionMutation = { + __typename?: "Mutations"; + deleteQuestion?: { __typename?: "DeleteQuestion"; deletedId?: string | null; ok?: boolean | null } | null; +}; export type SubmitAnswersMutationVariables = Exact<{ - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; answersData?: InputMaybe | AnswerInput>; }>; - -export type SubmitAnswersMutation = { __typename?: 'Mutations', submitAnswers?: { __typename?: 'SubmitOrUpdateAnswers', ok?: boolean | null, message?: string | null } | null }; +export type SubmitAnswersMutation = { + __typename?: "Mutations"; + submitAnswers?: { __typename?: "SubmitOrUpdateAnswers"; ok?: boolean | null; message?: string | null } | null; +}; export type FormWithAllResponsesQueryVariables = Exact<{ - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; }>; - -export type FormWithAllResponsesQuery = { __typename?: 'Queries', form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null }; +export type FormWithAllResponsesQuery = { + __typename?: "Queries"; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; + } | null; +}; export type FormWithAnswersQueryVariables = Exact<{ - formId: Scalars['ID']['input']; + formId: Scalars["ID"]["input"]; }>; - -export type FormWithAnswersQuery = { __typename?: 'Queries', form?: { __typename?: 'FormType', id: string, name: string, description: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answer?: { __typename?: 'AnswerType', id?: string | null, answer: string } | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null }; - -export type ListingFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; - -export type ListingOrganizationFragment = { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string }; - -export type ListingWithFormIdFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; - -export type ListingWithFormFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; - -export type ListingWithResponsesFragment = { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }; +export type FormWithAnswersQuery = { + __typename?: "Queries"; + form?: { + __typename?: "FormType"; + id: string; + name: string; + description: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answer?: { __typename?: "AnswerType"; id?: string | null; answer: string } | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + } | null; +}; + +export type ListingFragment = { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; +}; + +export type ListingOrganizationFragment = { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; +}; + +export type ListingWithFormIdFragment = { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { __typename?: "FormType"; id: string } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; +}; + +export type ListingWithFormFragment = { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; +}; + +export type ListingWithResponsesFragment = { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; + } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; +}; export type CreateListingMutationVariables = Exact<{ input: CreateListingInput; }>; - -export type CreateListingMutation = { __typename?: 'Mutations', createListing?: { __typename?: 'CreateListing', ok?: boolean | null, listing?: { __typename?: 'ListingType', id: string, slug: string } | null } | null }; +export type CreateListingMutation = { + __typename?: "Mutations"; + createListing?: { + __typename?: "CreateListing"; + ok?: boolean | null; + listing?: { __typename?: "ListingType"; id: string; slug: string } | null; + } | null; +}; export type UpdateListingMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; input?: InputMaybe; }>; - -export type UpdateListingMutation = { __typename?: 'Mutations', updateListing?: { __typename?: 'UpdateListing', ok?: boolean | null, listing?: { __typename?: 'ListingType', id: string, slug: string } | null } | null }; +export type UpdateListingMutation = { + __typename?: "Mutations"; + updateListing?: { + __typename?: "UpdateListing"; + ok?: boolean | null; + listing?: { __typename?: "ListingType"; id: string; slug: string } | null; + } | null; +}; export type DeleteListingMutationVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type DeleteListingMutation = { __typename?: 'Mutations', deleteListing?: { __typename?: 'DeleteListing', listingId?: string | null, ok?: boolean | null } | null }; +export type DeleteListingMutation = { + __typename?: "Mutations"; + deleteListing?: { __typename?: "DeleteListing"; listingId?: string | null; ok?: boolean | null } | null; +}; export type ListingQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type ListingQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; - -export type ListingsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ListingsQuery = { __typename?: 'Queries', listings?: Array<{ __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } }> | null }; +export type ListingQuery = { + __typename?: "Queries"; + listing?: { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { __typename?: "FormType"; id: string } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; + } | null; +}; + +export type ListingsQueryVariables = Exact<{ [key: string]: never }>; + +export type ListingsQuery = { + __typename?: "Queries"; + listings?: Array<{ + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; + }> | null; +}; export type ListingWithFormQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type ListingWithFormQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }> } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; +export type ListingWithFormQuery = { + __typename?: "Queries"; + listing?: { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; + } | null; +}; export type ListingWithResponsesQueryVariables = Exact<{ - id: Scalars['ID']['input']; + id: Scalars["ID"]["input"]; }>; - -export type ListingWithResponsesQuery = { __typename?: 'Queries', listing?: { __typename?: 'ListingType', id: string, title: string, slug: string, description: string, startDatetime: string, deadline: string, endDatetime: string, applicationUrl?: string | null, chips: Array, readMoreUrl?: string | null, heroImageUrl?: string | null, form?: { __typename?: 'FormType', id: string, name: string, questions: Array<{ __typename?: 'QuestionType', id: string, question: string, description: string, questionType?: QuestionTypeEnum | null, mandatory: boolean, answers?: Array<{ __typename?: 'AnswerType', id?: string | null }> | null, options?: Array<{ __typename?: 'OptionType', id: string, answer: string }> | null }>, responses?: Array<{ __typename?: 'ResponseType', id?: string | null, respondent: { __typename?: 'UserType', id: string, firstName: string, lastName: string }, answers: Array<{ __typename?: 'AnswerType', id?: string | null, answer: string, question: { __typename?: 'QuestionType', id: string } }> }> | null } | null, organization: { __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string } } | null }; - -export type UserOrganizationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserOrganizationsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string, slug: string, logoUrl?: string | null, color?: string | null, description: string }> } | null }; - -export type AdminOrganizationFragment = { __typename?: 'OrganizationType', id: string, name: string, hrGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, primaryGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, events: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }>, listings?: Array<{ __typename?: 'ListingType', id: string, title: string, deadline: string }> | null }; - -export type OrgAdminEventFragment = { __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }; - -export type OrgAdminListingFragment = { __typename?: 'ListingType', id: string, title: string, deadline: string }; - -export type MembershipFragment = { __typename?: 'MembershipType', id: string, user: { __typename?: 'UserType', firstName: string, lastName: string }, group?: { __typename?: 'ResponsibleGroupType', uuid: string } | null }; +export type ListingWithResponsesQuery = { + __typename?: "Queries"; + listing?: { + __typename?: "ListingType"; + id: string; + title: string; + slug: string; + description: string; + startDatetime: string; + deadline: string; + endDatetime: string; + applicationUrl?: string | null; + chips: Array; + readMoreUrl?: string | null; + heroImageUrl?: string | null; + form?: { + __typename?: "FormType"; + id: string; + name: string; + questions: Array<{ + __typename?: "QuestionType"; + id: string; + question: string; + description: string; + questionType?: QuestionTypeEnum | null; + mandatory: boolean; + answers?: Array<{ __typename?: "AnswerType"; id?: string | null }> | null; + options?: Array<{ __typename?: "OptionType"; id: string; answer: string }> | null; + }>; + responses?: Array<{ + __typename?: "ResponseType"; + id?: string | null; + respondent: { __typename?: "UserType"; id: string; firstName: string; lastName: string }; + answers: Array<{ + __typename?: "AnswerType"; + id?: string | null; + answer: string; + question: { __typename?: "QuestionType"; id: string }; + }>; + }> | null; + } | null; + organization: { + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }; + } | null; +}; + +export type UserOrganizationsQueryVariables = Exact<{ [key: string]: never }>; + +export type UserOrganizationsQuery = { + __typename?: "Queries"; + user?: { + __typename?: "UserType"; + organizations: Array<{ + __typename?: "OrganizationType"; + id: string; + name: string; + slug: string; + logoUrl?: string | null; + color?: string | null; + description: string; + }>; + } | null; +}; + +export type AdminOrganizationFragment = { + __typename?: "OrganizationType"; + id: string; + name: string; + hrGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; + primaryGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; + events: Array<{ + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + availableSlots?: number | null; + isFull?: boolean | null; + usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; + }>; + listings?: Array<{ __typename?: "ListingType"; id: string; title: string; deadline: string }> | null; +}; + +export type OrgAdminEventFragment = { + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + availableSlots?: number | null; + isFull?: boolean | null; + usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; +}; + +export type OrgAdminListingFragment = { __typename?: "ListingType"; id: string; title: string; deadline: string }; + +export type MembershipFragment = { + __typename?: "MembershipType"; + id: string; + user: { __typename?: "UserType"; firstName: string; lastName: string }; + group?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; +}; export type AdminOrganizationQueryVariables = Exact<{ - orgId: Scalars['ID']['input']; + orgId: Scalars["ID"]["input"]; }>; - -export type AdminOrganizationQuery = { __typename?: 'Queries', organization?: { __typename?: 'OrganizationType', id: string, name: string, hrGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, primaryGroup?: { __typename?: 'ResponsibleGroupType', uuid: string } | null, events: Array<{ __typename?: 'EventType', id: string, title: string, startTime: string, shortDescription?: string | null, availableSlots?: number | null, isFull?: boolean | null, usersAttending?: Array<{ __typename?: 'SignUpType', id: string }> | null }>, listings?: Array<{ __typename?: 'ListingType', id: string, title: string, deadline: string }> | null } | null }; +export type AdminOrganizationQuery = { + __typename?: "Queries"; + organization?: { + __typename?: "OrganizationType"; + id: string; + name: string; + hrGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; + primaryGroup?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; + events: Array<{ + __typename?: "EventType"; + id: string; + title: string; + startTime: string; + shortDescription?: string | null; + availableSlots?: number | null; + isFull?: boolean | null; + usersAttending?: Array<{ __typename?: "SignUpType"; id: string }> | null; + }>; + listings?: Array<{ __typename?: "ListingType"; id: string; title: string; deadline: string }> | null; + } | null; +}; export type MembershipsQueryVariables = Exact<{ - organizationId: Scalars['ID']['input']; + organizationId: Scalars["ID"]["input"]; }>; - -export type MembershipsQuery = { __typename?: 'Queries', memberships?: Array<{ __typename?: 'MembershipType', id: string, user: { __typename?: 'UserType', firstName: string, lastName: string }, group?: { __typename?: 'ResponsibleGroupType', uuid: string } | null }> | null }; +export type MembershipsQuery = { + __typename?: "Queries"; + memberships?: Array<{ + __typename?: "MembershipType"; + id: string; + user: { __typename?: "UserType"; firstName: string; lastName: string }; + group?: { __typename?: "ResponsibleGroupType"; uuid: string } | null; + }> | null; +}; export type HasPermissionQueryVariables = Exact<{ - permission: Scalars['String']['input']; + permission: Scalars["String"]["input"]; }>; - -export type HasPermissionQuery = { __typename?: 'Queries', hasPermission?: boolean | null }; - -export type UserFragment = { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean }; - -export type UserWithEventsAndOrgsFragment = { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean, events?: Array<{ __typename?: 'EventType', id: string }> | null, organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string }> }; - -export type UserToEditFragment = { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string, phoneNumber: string, allergies?: string | null, email: string, graduationYear?: number | null, firstLogin: boolean, feideEmail: string, canUpdateYear?: boolean | null, yearUpdatedAt?: string | null }; - -export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; - - -export type LogoutMutation = { __typename?: 'Mutations', logout?: { __typename?: 'Logout', idToken?: string | null } | null }; +export type HasPermissionQuery = { __typename?: "Queries"; hasPermission?: boolean | null }; + +export type UserFragment = { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; +}; + +export type UserWithEventsAndOrgsFragment = { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; + events?: Array<{ __typename?: "EventType"; id: string }> | null; + organizations: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; +}; + +export type UserToEditFragment = { + __typename?: "UserType"; + id: string; + username: string; + firstName: string; + lastName: string; + phoneNumber: string; + allergies?: string | null; + email: string; + graduationYear?: number | null; + firstLogin: boolean; + feideEmail: string; + canUpdateYear?: boolean | null; + yearUpdatedAt?: string | null; +}; + +export type LogoutMutationVariables = Exact<{ [key: string]: never }>; + +export type LogoutMutation = { + __typename?: "Mutations"; + logout?: { __typename?: "Logout"; idToken?: string | null } | null; +}; export type AuthUserMutationVariables = Exact<{ - code: Scalars['String']['input']; + code: Scalars["String"]["input"]; }>; - -export type AuthUserMutation = { __typename?: 'Mutations', authUser: { __typename?: 'AuthUser', user: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } } }; +export type AuthUserMutation = { + __typename?: "Mutations"; + authUser: { + __typename?: "AuthUser"; + user: { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; + }; + }; +}; export type UpdateUserMutationVariables = Exact<{ userData?: InputMaybe; }>; - -export type UpdateUserMutation = { __typename?: 'Mutations', updateUser?: { __typename?: 'UpdateUser', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } | null } | null }; - -export type UserQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean } | null }; - -export type UserWithEventsAndOrgsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserWithEventsAndOrgsQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, feideEmail: string, email: string, username: string, firstName: string, lastName: string, dateJoined: string, graduationYear?: number | null, gradeYear?: number | null, allergies?: string | null, phoneNumber: string, firstLogin: boolean, events?: Array<{ __typename?: 'EventType', id: string }> | null, organizations: Array<{ __typename?: 'OrganizationType', id: string, name: string }> } | null }; - -export type UserToEditQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserToEditQuery = { __typename?: 'Queries', user?: { __typename?: 'UserType', id: string, username: string, firstName: string, lastName: string, phoneNumber: string, allergies?: string | null, email: string, graduationYear?: number | null, firstLogin: boolean, feideEmail: string, canUpdateYear?: boolean | null, yearUpdatedAt?: string | null } | null }; - -export type ServerTimeQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ServerTimeQuery = { __typename?: 'Queries', serverTime?: string | null }; - -export const DocumentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; -export const CabinFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; -export const BookingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Booking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AllBookingsType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const AdminBookingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminBooking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AdminBookingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"receiverEmail"}},{"kind":"Field","name":{"kind":"Name","value":"externalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"internalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"isTentative"}},{"kind":"Field","name":{"kind":"Name","value":"isDeclined"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extraInfo"}},{"kind":"Field","name":{"kind":"Name","value":"declineReason"}}]}}]} as unknown as DocumentNode; -export const BookingResponsibleFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingResponsible"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BookingResponsibleType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"active"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}}]}}]} as unknown as DocumentNode; -export const BookingSemesterFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; -export const ProductFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; -export const OrderFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; -export const EventFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; -export const EventDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; -export const SignUpWithTicketFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}}]} as unknown as DocumentNode; -export const SignUpFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}}]} as unknown as DocumentNode; -export const AdminEventFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"publisher"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUpWithTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usersOnWaitingList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}}]} as unknown as DocumentNode; -export const OptionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; -export const QuestionFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; -export const AnswerFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; -export const QuestionWithAnswerFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; -export const FormWithAnswersFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAnswers"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}}]} as unknown as DocumentNode; -export const ListingOrganizationFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; -export const ListingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; -export const ListingWithFormIdFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithFormId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]} as unknown as DocumentNode; -export const FormFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}}]} as unknown as DocumentNode; -export const ListingWithFormFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithForm"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Form"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}}]} as unknown as DocumentNode; -export const QuestionWithAnswerIdsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}}]} as unknown as DocumentNode; -export const AnswerWithQuestionIdFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}}]} as unknown as DocumentNode; -export const ResponseFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const FormWithAllResponsesFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}}]} as unknown as DocumentNode; -export const ListingWithResponsesFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; -export const OrgAdminEventFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const OrgAdminListingFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}}]} as unknown as DocumentNode; -export const AdminOrganizationFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hrGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminEvent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminListing"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}}]} as unknown as DocumentNode; -export const MembershipFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Membership"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MembershipType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]} as unknown as DocumentNode; -export const UserFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; -export const UserWithEventsAndOrgsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserWithEventsAndOrgs"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; -export const UserToEditFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserToEdit"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateYear"}},{"kind":"Field","name":{"kind":"Name","value":"yearUpdatedAt"}}]}}]} as unknown as DocumentNode; -export const ArchiveByTypesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"archiveByTypes"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"names"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveByTypes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"typeDoc"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}}},{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}},{"kind":"Argument","name":{"kind":"Name","value":"names"},"value":{"kind":"Variable","name":{"kind":"Name","value":"names"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; -export const FeaturedArchiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; -export const AvailableYearsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"availableYears"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableYears"}}]}}]} as unknown as DocumentNode; -export const DocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"documents"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"names"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveByTypes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"typeDoc"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentTypes"}}},{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}},{"kind":"Argument","name":{"kind":"Name","value":"names"},"value":{"kind":"Variable","name":{"kind":"Name","value":"names"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featuredArchive"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Document"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"StringValue","value":"archive.view_archivedocument","block":false}}]}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Document"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ArchiveDocumentType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"typeDoc"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"webLink"}}]}}]} as unknown as DocumentNode; -export const CreateBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"bookingData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BookingInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"bookingData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const ConfirmBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"confirmBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"isTentative"},"value":{"kind":"BooleanValue","value":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const DeclineBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"declineBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"declineReason"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBooking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"bookingData"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"isTentative"},"value":{"kind":"BooleanValue","value":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"isDeclined"},"value":{"kind":"BooleanValue","value":true}},{"kind":"ObjectField","name":{"kind":"Name","value":"declineReason"},"value":{"kind":"Variable","name":{"kind":"Name","value":"declineReason"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const SendEmailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"sendEmail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emailInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EmailInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendEmail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"emailInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emailInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateCabinDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateCabin"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cabinData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCabinInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCabin"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cabinData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cabinData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabin"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; -export const UpdateBookingSemesterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateBookingSemester"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"semesterData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBookingSemester"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"semesterData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"semesterData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingSemester"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; -export const CabinsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; -export const AllBookingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allBookings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBookings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Booking"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Booking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AllBookingsType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const AdminAllBookingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminAllBookings"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminAllBookings"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminBooking"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminBooking"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AdminBookingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"checkIn"}},{"kind":"Field","name":{"kind":"Name","value":"checkOut"}},{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"receiverEmail"}},{"kind":"Field","name":{"kind":"Name","value":"externalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"internalParticipants"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"isTentative"}},{"kind":"Field","name":{"kind":"Name","value":"isDeclined"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extraInfo"}},{"kind":"Field","name":{"kind":"Name","value":"declineReason"}}]}}]} as unknown as DocumentNode; -export const ActiveBookingResponsibleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingResponsible"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingResponsible"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BookingResponsibleType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"active"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}}]}}]} as unknown as DocumentNode; -export const CabinsAndResponsiblesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"cabinsAndResponsibles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cabins"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Cabin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activeBookingResponsible"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Cabin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CabinType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"maxGuests"}},{"kind":"Field","name":{"kind":"Name","value":"internalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"externalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"internalPriceWeekend"}},{"kind":"Field","name":{"kind":"Name","value":"externalPriceWeekend"}}]}}]} as unknown as DocumentNode; -export const BookingSemesterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bookingSemester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BookingSemester"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BookingSemester"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBookingSemesterType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fallStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"springStartDate"}},{"kind":"Field","name":{"kind":"Name","value":"springEndDate"}},{"kind":"Field","name":{"kind":"Name","value":"fallSemesterActive"}},{"kind":"Field","name":{"kind":"Name","value":"springSemesterActive"}}]}}]} as unknown as DocumentNode; -export const InitiateOrderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"initiateOrder"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fallbackRedirect"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"initiateOrder"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"productId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productId"}}},{"kind":"Argument","name":{"kind":"Name","value":"quantity"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quantity"}}},{"kind":"Argument","name":{"kind":"Name","value":"fallbackRedirect"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fallbackRedirect"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"redirect"}},{"kind":"Field","name":{"kind":"Name","value":"orderId"}}]}}]}}]} as unknown as DocumentNode; -export const AttemptCapturePaymentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"attemptCapturePayment"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attemptCapturePayment"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const DeliveredProductDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deliveredProduct"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orderId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const ProductDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"product"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"product"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"productId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]} as unknown as DocumentNode; -export const ProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}}]}}]} as unknown as DocumentNode; -export const UserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const AllUserOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allUserOrders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const PaginatedShopOrdersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"paginatedShopOrders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"paginatedShopOrders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Order"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Product"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ProductType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"maxBuyableQuantity"}},{"kind":"Field","name":{"kind":"Name","value":"shopItem"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Order"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrderType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"totalPrice"}},{"kind":"Field","name":{"kind":"Name","value":"paymentStatus"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deliveredProduct"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Product"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; -export const CreateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"eventData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; -export const EventSignUpDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignUp"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignUp"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extraInformation"},"value":{"kind":"Variable","name":{"kind":"Name","value":"extraInformation"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const EventSignOffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"eventSignOff"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventSignOff"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const AdminEventSignOffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"adminEventSignOff"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminEventSignOff"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"userId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const SendEventMailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"sendEventMails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"receiverEmails"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"content"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"subject"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendEventMails"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"receiverEmails"},"value":{"kind":"Variable","name":{"kind":"Name","value":"receiverEmails"}}},{"kind":"Argument","name":{"kind":"Name","value":"content"},"value":{"kind":"Variable","name":{"kind":"Name","value":"content"}}},{"kind":"Argument","name":{"kind":"Name","value":"subject"},"value":{"kind":"Variable","name":{"kind":"Name","value":"subject"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const EventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"events"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organization"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"category"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allEvents"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organization"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organization"}}},{"kind":"Argument","name":{"kind":"Name","value":"category"},"value":{"kind":"Variable","name":{"kind":"Name","value":"category"}}},{"kind":"Argument","name":{"kind":"Name","value":"startTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}}},{"kind":"Argument","name":{"kind":"Name","value":"endTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"defaultEvents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"StringValue","value":"events.add_event","block":false}}]}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}}]}}]} as unknown as DocumentNode; -export const EventDetailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventDetails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventDetailFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"positionOnWaitingList"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}}]}}]} as unknown as DocumentNode; -export const AllCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"allCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const EventFilteredOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventFilteredOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventFilteredOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"children"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; -export const AdminEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminEvent"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUpWithTicket"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"hasBoughtTicket"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SignUp"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SignUpType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userGradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"userAllergies"}},{"kind":"Field","name":{"kind":"Name","value":"userPhoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"extraInformation"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"publisher"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"signupOpenDate"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUpWithTicket"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usersOnWaitingList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SignUp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userAttendance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isSignedUp"}},{"kind":"Field","name":{"kind":"Name","value":"isOnWaitingList"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"hasExtraInformation"}},{"kind":"Field","name":{"kind":"Name","value":"bindingSignup"}},{"kind":"Field","name":{"kind":"Name","value":"contactEmail"}},{"kind":"Field","name":{"kind":"Name","value":"allowedGradeYears"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const EventSignUpsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventSignUps"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isAttendable"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}}]}}]}}]} as unknown as DocumentNode; -export const AttendeeReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; -export const AttendeeReportOrgDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReportOrg"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReportOrg"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orgId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; -export const AttendeeReportsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"attendeeReports"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attendeeReports"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}},{"kind":"Argument","name":{"kind":"Name","value":"filetype"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filetype"}}}]}]}}]} as unknown as DocumentNode; -export const EventUserOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"eventUserOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const CreateFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateFormInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"listingId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createForm"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formData"}}},{"kind":"Argument","name":{"kind":"Name","value":"listingId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"listingId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseFormInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateForm"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"formData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; -export const CreateQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateQuestionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}},{"kind":"Argument","name":{"kind":"Name","value":"questionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseQuestionInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"optionData"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OptionInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createUpdateAndDeleteOptions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"questionId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"optionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"optionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updateQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"questionData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"questionData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const DeleteQuestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteQuestion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteQuestion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deletedId"}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const SubmitAnswersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"submitAnswers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"answersData"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"submitAnswers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}},{"kind":"Argument","name":{"kind":"Name","value":"answersData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"answersData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode; -export const FormWithAllResponsesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"formWithAllResponses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}}]} as unknown as DocumentNode; -export const FormWithAnswersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"formWithAnswers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"formId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"form"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"formId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"formId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAnswers"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAnswers"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswer"}}]}}]}}]} as unknown as DocumentNode; -export const CreateListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateListingInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"listingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BaseListingInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"listingData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const DeleteListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteListing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteListing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listingId"}},{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode; -export const ListingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithFormId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithFormId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const ListingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]} as unknown as DocumentNode; -export const ListingWithFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listingWithForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithForm"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Form"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithForm"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Form"}}]}}]}}]} as unknown as DocumentNode; -export const ListingWithResponsesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"listingWithResponses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingWithResponses"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Listing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}},{"kind":"Field","name":{"kind":"Name","value":"endDatetime"}},{"kind":"Field","name":{"kind":"Name","value":"applicationUrl"}},{"kind":"Field","name":{"kind":"Name","value":"chips"}},{"kind":"Field","name":{"kind":"Name","value":"readMoreUrl"}},{"kind":"Field","name":{"kind":"Name","value":"heroImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Option"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OptionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Question"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"questionType"}},{"kind":"Field","name":{"kind":"Name","value":"mandatory"}},{"kind":"Field","name":{"kind":"Name","value":"options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Option"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"QuestionWithAnswerIds"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Question"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Answer"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"answer"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AnswerWithQuestionId"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AnswerType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Answer"}},{"kind":"Field","name":{"kind":"Name","value":"question"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Response"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResponseType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"respondent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AnswerWithQuestionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormWithAllResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"questions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"QuestionWithAnswerIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"responses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Response"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingWithResponses"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"Listing"}},{"kind":"Field","name":{"kind":"Name","value":"form"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FormWithAllResponses"}}]}}]}}]} as unknown as DocumentNode; -export const UserOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ListingOrganization"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ListingOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]} as unknown as DocumentNode; -export const AdminOrganizationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"adminOrganization"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AdminOrganization"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminEvent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EventType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"shortDescription"}},{"kind":"Field","name":{"kind":"Name","value":"availableSlots"}},{"kind":"Field","name":{"kind":"Name","value":"isFull"}},{"kind":"Field","name":{"kind":"Name","value":"usersAttending"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"OrgAdminListing"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListingType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"deadline"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AdminOrganization"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hrGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminEvent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"listings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"OrgAdminListing"}}]}}]}}]} as unknown as DocumentNode; -export const MembershipsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"memberships"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"memberships"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organizationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}}]}}]}}]}}]} as unknown as DocumentNode; -export const HasPermissionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"hasPermission"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"permission"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permission"},"value":{"kind":"Variable","name":{"kind":"Name","value":"permission"}}}]}]}}]} as unknown as DocumentNode; -export const LogoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"logout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"logout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"idToken"}}]}}]}}]} as unknown as DocumentNode; -export const AuthUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"authUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"code"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"authUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"code"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; -export const UpdateUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userData"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UserInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"userData"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userData"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; -export const UserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}}]} as unknown as DocumentNode; -export const UserWithEventsAndOrgsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userWithEventsAndOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserWithEventsAndOrgs"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"dateJoined"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"gradeYear"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserWithEventsAndOrgs"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}},{"kind":"Field","name":{"kind":"Name","value":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const UserToEditDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"userToEdit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserToEdit"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserToEdit"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allergies"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"graduationYear"}},{"kind":"Field","name":{"kind":"Name","value":"firstLogin"}},{"kind":"Field","name":{"kind":"Name","value":"feideEmail"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateYear"}},{"kind":"Field","name":{"kind":"Name","value":"yearUpdatedAt"}}]}}]} as unknown as DocumentNode; -export const ServerTimeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"serverTime"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverTime"}}]}}]} as unknown as DocumentNode; \ No newline at end of file +export type UpdateUserMutation = { + __typename?: "Mutations"; + updateUser?: { + __typename?: "UpdateUser"; + user?: { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; + } | null; + } | null; +}; + +export type UserQueryVariables = Exact<{ [key: string]: never }>; + +export type UserQuery = { + __typename?: "Queries"; + user?: { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; + } | null; +}; + +export type UserWithEventsAndOrgsQueryVariables = Exact<{ [key: string]: never }>; + +export type UserWithEventsAndOrgsQuery = { + __typename?: "Queries"; + user?: { + __typename?: "UserType"; + id: string; + feideEmail: string; + email: string; + username: string; + firstName: string; + lastName: string; + dateJoined: string; + graduationYear?: number | null; + gradeYear?: number | null; + allergies?: string | null; + phoneNumber: string; + firstLogin: boolean; + events?: Array<{ __typename?: "EventType"; id: string }> | null; + organizations: Array<{ __typename?: "OrganizationType"; id: string; name: string }>; + } | null; +}; + +export type UserToEditQueryVariables = Exact<{ [key: string]: never }>; + +export type UserToEditQuery = { + __typename?: "Queries"; + user?: { + __typename?: "UserType"; + id: string; + username: string; + firstName: string; + lastName: string; + phoneNumber: string; + allergies?: string | null; + email: string; + graduationYear?: number | null; + firstLogin: boolean; + feideEmail: string; + canUpdateYear?: boolean | null; + yearUpdatedAt?: string | null; + } | null; +}; + +export type ServerTimeQueryVariables = Exact<{ [key: string]: never }>; + +export type ServerTimeQuery = { __typename?: "Queries"; serverTime?: string | null }; + +export const DocumentFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Document" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, + { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, + { kind: "Field", name: { kind: "Name", value: "year" } }, + { kind: "Field", name: { kind: "Name", value: "webLink" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CabinFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Cabin" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, + { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, + { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const BookingFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Booking" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AllBookingsType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "checkIn" } }, + { kind: "Field", name: { kind: "Name", value: "checkOut" } }, + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminBookingFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminBooking" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminBookingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "checkIn" } }, + { kind: "Field", name: { kind: "Name", value: "checkOut" } }, + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "phone" } }, + { kind: "Field", name: { kind: "Name", value: "receiverEmail" } }, + { kind: "Field", name: { kind: "Name", value: "externalParticipants" } }, + { kind: "Field", name: { kind: "Name", value: "internalParticipants" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "isTentative" } }, + { kind: "Field", name: { kind: "Name", value: "isDeclined" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "extraInfo" } }, + { kind: "Field", name: { kind: "Name", value: "declineReason" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const BookingResponsibleFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "BookingResponsible" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BookingResponsibleType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "active" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "phone" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const BookingSemesterFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "BookingSemester" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, + { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ProductFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const OrderFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventFieldsFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventDetailFieldsFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventDetailFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "endTime" } }, + { kind: "Field", name: { kind: "Name", value: "location" } }, + { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "category" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const SignUpWithTicketFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUpWithTicket" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const SignUpFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUp" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminEventFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminEvent" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "endTime" } }, + { kind: "Field", name: { kind: "Name", value: "location" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "category" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "image" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { + kind: "Field", + name: { kind: "Name", value: "publisher" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUpWithTicket" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "usersOnWaitingList" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUp" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, + { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUpWithTicket" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUp" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const OptionFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const QuestionFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AnswerFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const QuestionWithAnswerFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answer" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FormWithAnswersFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAnswers" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswer" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answer" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingOrganizationFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingWithFormIdFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithFormId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FormFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Form" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingWithFormFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithForm" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Form" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Form" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const QuestionWithAnswerIdsFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AnswerWithQuestionIdFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ResponseFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FormWithAllResponsesFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingWithResponsesFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const OrgAdminEventFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminEvent" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const OrgAdminListingFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminListing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminOrganizationFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "hrGroup" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "primaryGroup" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "events" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminEvent" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "listings" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminListing" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminEvent" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminListing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const MembershipFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Membership" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "MembershipType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "group" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserWithEventsAndOrgsFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "UserWithEventsAndOrgs" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "User" } }, + { + kind: "Field", + name: { kind: "Name", value: "events" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserToEditFragmentDoc = { + kind: "Document", + definitions: [ + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "UserToEdit" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "canUpdateYear" } }, + { kind: "Field", name: { kind: "Name", value: "yearUpdatedAt" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ArchiveByTypesDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "archiveByTypes" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, + type: { + kind: "NonNullType", + type: { kind: "ListType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "year" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "names" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "archiveByTypes" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "typeDoc" }, + value: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "year" }, + value: { kind: "Variable", name: { kind: "Name", value: "year" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "names" }, + value: { kind: "Variable", name: { kind: "Name", value: "names" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Document" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, + { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, + { kind: "Field", name: { kind: "Name", value: "year" } }, + { kind: "Field", name: { kind: "Name", value: "webLink" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FeaturedArchiveDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "featuredArchive" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "featuredArchive" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Document" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, + { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, + { kind: "Field", name: { kind: "Name", value: "year" } }, + { kind: "Field", name: { kind: "Name", value: "webLink" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AvailableYearsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "availableYears" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "availableYears" } }], + }, + }, + ], +} as unknown as DocumentNode; +export const DocumentsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "documents" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, + type: { + kind: "NonNullType", + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "year" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "names" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "archiveByTypes" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "typeDoc" }, + value: { kind: "Variable", name: { kind: "Name", value: "documentTypes" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "year" }, + value: { kind: "Variable", name: { kind: "Name", value: "year" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "names" }, + value: { kind: "Variable", name: { kind: "Name", value: "names" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "featuredArchive" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Document" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "availableYears" } }, + { + kind: "Field", + name: { kind: "Name", value: "hasPermission" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "permission" }, + value: { kind: "StringValue", value: "archive.view_archivedocument", block: false }, + }, + ], + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Document" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ArchiveDocumentType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "thumbnail" } }, + { kind: "Field", name: { kind: "Name", value: "typeDoc" } }, + { kind: "Field", name: { kind: "Name", value: "year" } }, + { kind: "Field", name: { kind: "Name", value: "webLink" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CreateBookingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "createBooking" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "bookingData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BookingInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createBooking" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "bookingData" }, + value: { kind: "Variable", name: { kind: "Name", value: "bookingData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ConfirmBookingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "confirmBooking" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateBooking" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "bookingData" }, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "ObjectField", + name: { kind: "Name", value: "isTentative" }, + value: { kind: "BooleanValue", value: false }, + }, + ], + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const DeclineBookingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "declineBooking" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "declineReason" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateBooking" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "bookingData" }, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "ObjectField", + name: { kind: "Name", value: "isTentative" }, + value: { kind: "BooleanValue", value: false }, + }, + { + kind: "ObjectField", + name: { kind: "Name", value: "isDeclined" }, + value: { kind: "BooleanValue", value: true }, + }, + { + kind: "ObjectField", + name: { kind: "Name", value: "declineReason" }, + value: { kind: "Variable", name: { kind: "Name", value: "declineReason" } }, + }, + ], + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const SendEmailDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "sendEmail" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "emailInput" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "EmailInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "sendEmail" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "emailInput" }, + value: { kind: "Variable", name: { kind: "Name", value: "emailInput" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateCabinDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateCabin" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "cabinData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCabinInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateCabin" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "cabinData" }, + value: { kind: "Variable", name: { kind: "Name", value: "cabinData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "cabin" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Cabin" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, + { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, + { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateBookingSemesterDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateBookingSemester" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "semesterData" } }, + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterInput" } }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateBookingSemester" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "semesterData" }, + value: { kind: "Variable", name: { kind: "Name", value: "semesterData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "bookingSemester" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingSemester" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "BookingSemester" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, + { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CabinsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Cabin" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, + { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, + { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AllBookingsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "allBookings" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "allBookings" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Booking" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Booking" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AllBookingsType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "checkIn" } }, + { kind: "Field", name: { kind: "Name", value: "checkOut" } }, + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminAllBookingsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "adminAllBookings" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "after" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "adminAllBookings" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "after" }, + value: { kind: "Variable", name: { kind: "Name", value: "after" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminBooking" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminBooking" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminBookingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "checkIn" } }, + { kind: "Field", name: { kind: "Name", value: "checkOut" } }, + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "phone" } }, + { kind: "Field", name: { kind: "Name", value: "receiverEmail" } }, + { kind: "Field", name: { kind: "Name", value: "externalParticipants" } }, + { kind: "Field", name: { kind: "Name", value: "internalParticipants" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "isTentative" } }, + { kind: "Field", name: { kind: "Name", value: "isDeclined" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "extraInfo" } }, + { kind: "Field", name: { kind: "Name", value: "declineReason" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ActiveBookingResponsibleDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "activeBookingResponsible" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "activeBookingResponsible" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingResponsible" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "BookingResponsible" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BookingResponsibleType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "active" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "phone" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CabinsAndResponsiblesDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "cabinsAndResponsibles" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "cabins" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Cabin" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "activeBookingResponsible" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Cabin" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CabinType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "maxGuests" } }, + { kind: "Field", name: { kind: "Name", value: "internalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "externalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "internalPriceWeekend" } }, + { kind: "Field", name: { kind: "Name", value: "externalPriceWeekend" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const BookingSemesterDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "bookingSemester" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "bookingSemester" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BookingSemester" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "BookingSemester" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UpdateBookingSemesterType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "fallStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "springStartDate" } }, + { kind: "Field", name: { kind: "Name", value: "springEndDate" } }, + { kind: "Field", name: { kind: "Name", value: "fallSemesterActive" } }, + { kind: "Field", name: { kind: "Name", value: "springSemesterActive" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const InitiateOrderDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "initiateOrder" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "productId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "quantity" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "fallbackRedirect" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "initiateOrder" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "productId" }, + value: { kind: "Variable", name: { kind: "Name", value: "productId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "quantity" }, + value: { kind: "Variable", name: { kind: "Name", value: "quantity" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "fallbackRedirect" }, + value: { kind: "Variable", name: { kind: "Name", value: "fallbackRedirect" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "redirect" } }, + { kind: "Field", name: { kind: "Name", value: "orderId" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AttemptCapturePaymentDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "attemptCapturePayment" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "attemptCapturePayment" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "orderId" }, + value: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "status" } }, + { + kind: "Field", + name: { kind: "Name", value: "order" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const DeliveredProductDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "deliveredProduct" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "deliveredProduct" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "orderId" }, + value: { kind: "Variable", name: { kind: "Name", value: "orderId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "order" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ProductDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "product" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "productId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "product" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "productId" }, + value: { kind: "Variable", name: { kind: "Name", value: "productId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ProductsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "products" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "products" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserOrdersDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "userOrders" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "userOrders" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AllUserOrdersDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "allUserOrders" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "allUserOrders" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const PaginatedShopOrdersDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "paginatedShopOrders" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "paginatedShopOrders" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "limit" }, + value: { kind: "Variable", name: { kind: "Name", value: "limit" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "offset" }, + value: { kind: "Variable", name: { kind: "Name", value: "offset" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Order" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Product" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ProductType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "maxBuyableQuantity" } }, + { kind: "Field", name: { kind: "Name", value: "shopItem" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Order" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrderType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "quantity" } }, + { kind: "Field", name: { kind: "Name", value: "totalPrice" } }, + { kind: "Field", name: { kind: "Name", value: "paymentStatus" } }, + { kind: "Field", name: { kind: "Name", value: "timestamp" } }, + { kind: "Field", name: { kind: "Name", value: "deliveredProduct" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Product" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CreateEventDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "createEvent" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateEventInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createEvent" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventData" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateEventDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateEvent" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateEventInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateEvent" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "eventData" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventDetailFields" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventDetailFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "endTime" } }, + { kind: "Field", name: { kind: "Name", value: "location" } }, + { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "category" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventSignUpDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "eventSignUp" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "extraInformation" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "eventSignUp" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventId" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "data" }, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: { kind: "Name", value: "extraInformation" }, + value: { kind: "Variable", name: { kind: "Name", value: "extraInformation" } }, + }, + ], + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventSignOffDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "eventSignOff" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "eventSignOff" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventId" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminEventSignOffDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "adminEventSignOff" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "userId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "adminEventSignOff" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventId" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "userId" }, + value: { kind: "Variable", name: { kind: "Name", value: "userId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const SendEventMailsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "sendEventMails" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "receiverEmails" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "content" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "subject" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "sendEventMails" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventId" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "receiverEmails" }, + value: { kind: "Variable", name: { kind: "Name", value: "receiverEmails" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "content" }, + value: { kind: "Variable", name: { kind: "Name", value: "content" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "subject" }, + value: { kind: "Variable", name: { kind: "Name", value: "subject" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "events" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "organization" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "category" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "startTime" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "DateTime" } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "endTime" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "DateTime" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "allEvents" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "organization" }, + value: { kind: "Variable", name: { kind: "Name", value: "organization" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "category" }, + value: { kind: "Variable", name: { kind: "Name", value: "category" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "startTime" }, + value: { kind: "Variable", name: { kind: "Name", value: "startTime" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "endTime" }, + value: { kind: "Variable", name: { kind: "Name", value: "endTime" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "defaultEvents" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventFields" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "hasPermission" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "permission" }, + value: { kind: "StringValue", value: "events.add_event", block: false }, + }, + ], + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventDetailsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "eventDetails" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "EventDetailFields" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "organizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "EventDetailFields" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "endTime" } }, + { kind: "Field", name: { kind: "Name", value: "location" } }, + { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "positionOnWaitingList" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "category" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AllCategoriesDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "allCategories" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "allCategories" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventFilteredOrganizationsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "eventFilteredOrganizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "eventFilteredOrganizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { + kind: "Field", + name: { kind: "Name", value: "children" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminEventDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "adminEvent" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminEvent" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUpWithTicket" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "hasBoughtTicket" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "SignUp" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SignUpType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "userEmail" } }, + { kind: "Field", name: { kind: "Name", value: "userGradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "userAllergies" } }, + { kind: "Field", name: { kind: "Name", value: "userPhoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "extraInformation" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminEvent" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "endTime" } }, + { kind: "Field", name: { kind: "Name", value: "location" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "category" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "image" } }, + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { + kind: "Field", + name: { kind: "Name", value: "publisher" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, + { kind: "Field", name: { kind: "Name", value: "price" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "signupOpenDate" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUpWithTicket" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "usersOnWaitingList" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SignUp" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "userAttendance" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isSignedUp" } }, + { kind: "Field", name: { kind: "Name", value: "isOnWaitingList" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { kind: "Field", name: { kind: "Name", value: "hasExtraInformation" } }, + { kind: "Field", name: { kind: "Name", value: "bindingSignup" } }, + { kind: "Field", name: { kind: "Name", value: "contactEmail" } }, + { kind: "Field", name: { kind: "Name", value: "allowedGradeYears" } }, + { + kind: "Field", + name: { kind: "Name", value: "product" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventSignUpsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "eventSignUps" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "event" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "isAttendable" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "userEmail" } }], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AttendeeReportDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "attendeeReport" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "attendeeReport" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventId" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "fields" }, + value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "filetype" }, + value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AttendeeReportOrgDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "attendeeReportOrg" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "attendeeReportOrg" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "orgId" }, + value: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "fields" }, + value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "filetype" }, + value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AttendeeReportsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "attendeeReports" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "eventIds" } }, + type: { + kind: "NonNullType", + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "attendeeReports" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "eventIds" }, + value: { kind: "Variable", name: { kind: "Name", value: "eventIds" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "fields" }, + value: { kind: "Variable", name: { kind: "Name", value: "fields" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "filetype" }, + value: { kind: "Variable", name: { kind: "Name", value: "filetype" } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const EventUserOrganizationsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "eventUserOrganizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "organizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CreateFormDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "createForm" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateFormInput" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "listingId" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "ID" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createForm" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "formData" }, + value: { kind: "Variable", name: { kind: "Name", value: "formData" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "listingId" }, + value: { kind: "Variable", name: { kind: "Name", value: "listingId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateFormDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateForm" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formData" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BaseFormInput" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateForm" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "formData" }, + value: { kind: "Variable", name: { kind: "Name", value: "formData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CreateQuestionDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "createQuestion" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "CreateQuestionInput" } }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createQuestion" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "formId" }, + value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "questionData" }, + value: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateQuestionDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateQuestion" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "BaseQuestionInput" } }, + }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "optionData" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "OptionInput" } } }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createUpdateAndDeleteOptions" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "questionId" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "optionData" }, + value: { kind: "Variable", name: { kind: "Name", value: "optionData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "ok" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "updateQuestion" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "questionData" }, + value: { kind: "Variable", name: { kind: "Name", value: "questionData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const DeleteQuestionDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "deleteQuestion" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "deleteQuestion" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "deletedId" } }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const SubmitAnswersDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "submitAnswers" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "answersData" } }, + type: { + kind: "ListType", + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "AnswerInput" } } }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "submitAnswers" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "formId" }, + value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "answersData" }, + value: { kind: "Variable", name: { kind: "Name", value: "answersData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "ok" } }, + { kind: "Field", name: { kind: "Name", value: "message" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FormWithAllResponsesDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "formWithAllResponses" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "form" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "formId" }, + value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FormWithAnswersDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "formWithAnswers" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "form" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "formId" }, + value: { kind: "Variable", name: { kind: "Name", value: "formId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAnswers" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answer" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAnswers" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswer" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const CreateListingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "createListing" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, + type: { + kind: "NonNullType", + type: { kind: "NamedType", name: { kind: "Name", value: "CreateListingInput" } }, + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "createListing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "listingData" }, + value: { kind: "Variable", name: { kind: "Name", value: "input" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listing" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateListingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateListing" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "BaseListingInput" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateListing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + { + kind: "Argument", + name: { kind: "Name", value: "listingData" }, + value: { kind: "Variable", name: { kind: "Name", value: "input" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listing" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + ], + }, + }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const DeleteListingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "deleteListing" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "deleteListing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "listingId" } }, + { kind: "Field", name: { kind: "Name", value: "ok" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "listing" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithFormId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithFormId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "listings" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listings" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingWithFormDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "listingWithForm" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithForm" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Form" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithForm" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Form" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ListingWithResponsesDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "listingWithResponses" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "listing" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "id" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingWithResponses" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Listing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "startDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + { kind: "Field", name: { kind: "Name", value: "endDatetime" } }, + { kind: "Field", name: { kind: "Name", value: "applicationUrl" } }, + { kind: "Field", name: { kind: "Name", value: "chips" } }, + { kind: "Field", name: { kind: "Name", value: "readMoreUrl" } }, + { kind: "Field", name: { kind: "Name", value: "heroImageUrl" } }, + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Option" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OptionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Question" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "question" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + { kind: "Field", name: { kind: "Name", value: "questionType" } }, + { kind: "Field", name: { kind: "Name", value: "mandatory" } }, + { + kind: "Field", + name: { kind: "Name", value: "options" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Option" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "QuestionWithAnswerIds" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "QuestionType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Question" } }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Answer" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "answer" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AnswerWithQuestionId" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AnswerType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Answer" } }, + { + kind: "Field", + name: { kind: "Name", value: "question" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "Response" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ResponseType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "respondent" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "answers" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AnswerWithQuestionId" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "FormWithAllResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "FormType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "questions" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "QuestionWithAnswerIds" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "responses" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Response" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingWithResponses" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "Listing" } }, + { + kind: "Field", + name: { kind: "Name", value: "form" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "FormWithAllResponses" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserOrganizationsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "userOrganizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "organizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ListingOrganization" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "ListingOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { kind: "Field", name: { kind: "Name", value: "slug" } }, + { kind: "Field", name: { kind: "Name", value: "logoUrl" } }, + { kind: "Field", name: { kind: "Name", value: "color" } }, + { kind: "Field", name: { kind: "Name", value: "description" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AdminOrganizationDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "adminOrganization" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "organization" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "id" }, + value: { kind: "Variable", name: { kind: "Name", value: "orgId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminOrganization" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminEvent" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "startTime" } }, + { kind: "Field", name: { kind: "Name", value: "shortDescription" } }, + { kind: "Field", name: { kind: "Name", value: "availableSlots" } }, + { kind: "Field", name: { kind: "Name", value: "isFull" } }, + { + kind: "Field", + name: { kind: "Name", value: "usersAttending" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "OrgAdminListing" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ListingType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "title" } }, + { kind: "Field", name: { kind: "Name", value: "deadline" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "AdminOrganization" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + { + kind: "Field", + name: { kind: "Name", value: "hrGroup" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "primaryGroup" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "events" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminEvent" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "listings" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrgAdminListing" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const MembershipsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "memberships" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "memberships" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "organizationId" }, + value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + ], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "group" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "uuid" } }], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const HasPermissionDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "hasPermission" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "permission" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "hasPermission" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "permission" }, + value: { kind: "Variable", name: { kind: "Name", value: "permission" } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const LogoutDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "logout" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "logout" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "idToken" } }], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const AuthUserDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "authUser" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "code" } }, + type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "authUser" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "code" }, + value: { kind: "Variable", name: { kind: "Name", value: "code" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UpdateUserDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "mutation", + name: { kind: "Name", value: "updateUser" }, + variableDefinitions: [ + { + kind: "VariableDefinition", + variable: { kind: "Variable", name: { kind: "Name", value: "userData" } }, + type: { kind: "NamedType", name: { kind: "Name", value: "UserInput" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "updateUser" }, + arguments: [ + { + kind: "Argument", + name: { kind: "Name", value: "userData" }, + value: { kind: "Variable", name: { kind: "Name", value: "userData" } }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "User" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserWithEventsAndOrgsDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "userWithEventsAndOrgs" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserWithEventsAndOrgs" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "User" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "dateJoined" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "gradeYear" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "UserWithEventsAndOrgs" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "FragmentSpread", name: { kind: "Name", value: "User" } }, + { + kind: "Field", + name: { kind: "Name", value: "events" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }], + }, + }, + { + kind: "Field", + name: { kind: "Name", value: "organizations" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "name" } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserToEditDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "userToEdit" }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { + kind: "Field", + name: { kind: "Name", value: "user" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserToEdit" } }], + }, + }, + ], + }, + }, + { + kind: "FragmentDefinition", + name: { kind: "Name", value: "UserToEdit" }, + typeCondition: { kind: "NamedType", name: { kind: "Name", value: "UserType" } }, + selectionSet: { + kind: "SelectionSet", + selections: [ + { kind: "Field", name: { kind: "Name", value: "id" } }, + { kind: "Field", name: { kind: "Name", value: "username" } }, + { kind: "Field", name: { kind: "Name", value: "firstName" } }, + { kind: "Field", name: { kind: "Name", value: "lastName" } }, + { kind: "Field", name: { kind: "Name", value: "phoneNumber" } }, + { kind: "Field", name: { kind: "Name", value: "allergies" } }, + { kind: "Field", name: { kind: "Name", value: "email" } }, + { kind: "Field", name: { kind: "Name", value: "graduationYear" } }, + { kind: "Field", name: { kind: "Name", value: "firstLogin" } }, + { kind: "Field", name: { kind: "Name", value: "feideEmail" } }, + { kind: "Field", name: { kind: "Name", value: "canUpdateYear" } }, + { kind: "Field", name: { kind: "Name", value: "yearUpdatedAt" } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const ServerTimeDocument = { + kind: "Document", + definitions: [ + { + kind: "OperationDefinition", + operation: "query", + name: { kind: "Name", value: "serverTime" }, + selectionSet: { + kind: "SelectionSet", + selections: [{ kind: "Field", name: { kind: "Name", value: "serverTime" } }], + }, + }, + ], +} as unknown as DocumentNode; diff --git a/frontend/src/gql/index.ts b/frontend/src/gql/index.ts index af7839936..8c65c5891 100644 --- a/frontend/src/gql/index.ts +++ b/frontend/src/gql/index.ts @@ -1 +1 @@ -export * from "./gql"; \ No newline at end of file +export * from "./gql"; diff --git a/frontend/src/layouts/footer/HallOfFame/constants.ts b/frontend/src/layouts/footer/HallOfFame/constants.ts index 853ada6e9..89a22eb09 100644 --- a/frontend/src/layouts/footer/HallOfFame/constants.ts +++ b/frontend/src/layouts/footer/HallOfFame/constants.ts @@ -13,12 +13,12 @@ export const rubberdokMembers: Record = { { name: "Frederik Egelund Edvardsen", class: 3 }, { name: "Andreas Tauge", class: 2 }, { name: "Kristian Tveråmo Aastveit", class: 3 }, - { name: "Inger Elinor Skomedal", class: 1}, - { name: "Erik Aas", class: 1}, + { name: "Inger Elinor Skomedal", class: 1 }, + { name: "Erik Aas", class: 1 }, { name: "Oscar Gangstad Westbye", class: 1 }, { name: "Jan Zabielski", class: 1 }, { name: "Tien Tran", class: 1 }, - { name: "Oda Fu Zhe Runde", class: 1}, + { name: "Oda Fu Zhe Runde", class: 1 }, ], "2023/2024": [ { name: "Magnus Hafstad", class: 3, position: "Prosjektleder" }, diff --git a/frontend/src/pages/orgs/[orgId]/index.tsx b/frontend/src/pages/orgs/[orgId]/index.tsx index 21dfdd1a0..a6d89d3c5 100644 --- a/frontend/src/pages/orgs/[orgId]/index.tsx +++ b/frontend/src/pages/orgs/[orgId]/index.tsx @@ -36,13 +36,15 @@ const OrganizationDetailPage: NextPageWithLayout = () => { {data?.organization && ( <> - + {activeTab == 0 && data.organization.events && } - {activeTab == 1 && data.organization.listings && } + {activeTab == 1 && data.organization.listings && ( + + )} {activeTab == 2 && data.organization && } {/*Separate stack because of different spacing*/} - + {activeTab == 3 && data.organization && } From 59d80007ebe10ec072920f6469af2d61be5a7e6f Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 18:00:25 +0200 Subject: [PATCH 05/11] Linting for python --- backend/apps/ecommerce/resolvers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 5e0a47780..4d1f7e82e 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -40,13 +40,15 @@ def resolve_all_user_orders(self, info): def resolve_paginated_shop_orders(self, info, limit, offset): # Apply pagination if limit and offset are provided - orders = Order.objects.filter(product__shop_item=True).order_by('delivered_product', 'payment_status', 'timestamp') + orders = Order.objects.filter(product__shop_item=True).order_by( + "delivered_product", "payment_status", "timestamp" + ) if offset is None: offset = 0 orders = orders[offset:] if limit is None or limit > 300: - limit = 300 #Add hard cap of maximum 300 orders per query. If we allowed this query to be bigger it would crash the website + limit = 300 # Add hard cap of maximum 300 orders per query. If we allowed this query to be bigger it would crash the website orders = orders[:limit] return orders From 2fc3bc56ce8a82d8d65f34b2285bed474702d1a3 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 18:09:03 +0200 Subject: [PATCH 06/11] Fixed more linting --- backend/apps/ecommerce/resolvers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 4d1f7e82e..51fea0f4e 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -48,7 +48,8 @@ def resolve_paginated_shop_orders(self, info, limit, offset): orders = orders[offset:] if limit is None or limit > 300: - limit = 300 # Add hard cap of maximum 300 orders per query. If we allowed this query to be bigger it would crash the website +#Add hard cap of maximum 300 orders per query. A bigger query would crash the website + limit = 300 orders = orders[:limit] return orders From b8c4a2fd016cbff8b3977f5154364ab73da05c30 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 18:11:58 +0200 Subject: [PATCH 07/11] Fixed more linting --- backend/apps/ecommerce/resolvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 51fea0f4e..1e55c84cf 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -48,7 +48,7 @@ def resolve_paginated_shop_orders(self, info, limit, offset): orders = orders[offset:] if limit is None or limit > 300: -#Add hard cap of maximum 300 orders per query. A bigger query would crash the website + #Add hard cap of maximum 300 orders per query. A bigger query would crash the website limit = 300 orders = orders[:limit] return orders From e0e5481393480413612bd531db268b1c5ecf730e Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 21 Oct 2024 18:18:18 +0200 Subject: [PATCH 08/11] Mer linting --- backend/apps/ecommerce/resolvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 1e55c84cf..8ecda5fa1 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -48,7 +48,7 @@ def resolve_paginated_shop_orders(self, info, limit, offset): orders = orders[offset:] if limit is None or limit > 300: - #Add hard cap of maximum 300 orders per query. A bigger query would crash the website + # Add hard cap of maximum 300 orders per query. A bigger query would crash the website limit = 300 orders = orders[:limit] return orders From 18c26a6aa92a3bf975503e050770d91bba9c8652 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 4 Nov 2024 19:14:10 +0100 Subject: [PATCH 09/11] -- checking for tests --- backend/apps/ecommerce/resolvers.py | 3 ++ backend/apps/ecommerce/tests.py | 83 +++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 8ecda5fa1..43e7be517 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -38,6 +38,8 @@ def resolve_user_orders(self, info): def resolve_all_user_orders(self, info): return Order.objects.all() + @login_required + @staff_member_required def resolve_paginated_shop_orders(self, info, limit, offset): # Apply pagination if limit and offset are provided orders = Order.objects.filter(product__shop_item=True).order_by( @@ -53,6 +55,7 @@ def resolve_paginated_shop_orders(self, info, limit, offset): orders = orders[:limit] return orders + @staff_member_required def resolve_orders_by_status(self, info: "ResolveInfo", product_id, status): orders = Order.objects.filter(product_id=product_id, payment_status=status) diff --git a/backend/apps/ecommerce/tests.py b/backend/apps/ecommerce/tests.py index 9fb9d553d..44d863b61 100644 --- a/backend/apps/ecommerce/tests.py +++ b/backend/apps/ecommerce/tests.py @@ -301,6 +301,7 @@ def test_unauthorized_user_initiate_order(self): @patch("requests.get", side_effect=setup_mock_get()) @patch("requests.post", side_effect=setup_mock_post()) @patch("requests.put", side_effect=setup_mock_put()) + def test_authorized_user_initiate_order(self, *args, **kwargs) -> None: # Scenario 1: Requesting more than available is not allowed response = self.query(self.INITIATE_ORDER_MUTATION(self.total_quantity + 1), user=self.indok_user) @@ -457,3 +458,85 @@ def test_delivered_product(self) -> None: order = Order.objects.get(pk=order.id) self.assertTrue(order.delivered_product) + + +class PaginatedShopOrdersResolverTests(ExtendedGraphQLTestCase): + def setUp(self): + # Create a staff user using the StaffUserFactory + self.staff_user = StaffUserFactory(username='staffuser') + + # Ensure the user satisfies the requirements for the new decorators + self.staff_user.is_staff = True # Required for @staff_member_required + self.staff_user.is_superuser = True # Required for @superuser_required if added + self.staff_user.save() + + # Create a product with `shop_item=True` to pass the resolver's filter condition + self.product = ProductFactory( + name='Test Product', + price=decimal.Decimal('1000.00'), + description='A test product description', + max_buyable_quantity=2, + total_quantity=5, + shop_item=True # Ensure this matches the resolver's filter condition + ) + + # Create multiple orders associated with the product and user + self.orders = [ + OrderFactory( + product=self.product, + user=self.staff_user, + payment_status=Order.PaymentStatus.INITIATED, + ) + for i in range(10) + ] + + def test_paginated_shop_orders_with_fragment_and_product(self): + query = ''' + query paginatedShopOrders($limit: Int, $offset: Int) { + paginatedShopOrders(limit: $limit, offset: $offset) { + ...Order + } + } + + fragment Order on OrderType { + id + quantity + totalPrice + paymentStatus + timestamp + deliveredProduct + product { + ...Product + } + } + + fragment Product on ProductType { + id + name + price + description + maxBuyableQuantity + shopItem + } + ''' + + # Execute the query using the query method from ExtendedGraphQLTestCase + response = self.query(query, variables={"limit": 5, "offset": 2}, user=self.staff_user) # Use staff user + data = json.loads(response.content) + + # Check if the response data matches expectations + self.assertIn('data', data) + self.assertIn('paginatedShopOrders', data['data']) + self.assertEqual(len(data['data']['paginatedShopOrders']), 5) + + # Verify the structure of the nested product field in the first order + first_order = data['data']['paginatedShopOrders'][0] + self.assertIn('product', first_order) + self.assertEqual(first_order['product']['name'], 'Test Product') + self.assertEqual(first_order['product']['price'], '1000.00') # Adjusted for consistency + self.assertTrue(first_order['product']['shopItem']) + + # Additional checks for other fields + self.assertIn('quantity', first_order) + self.assertIn('paymentStatus', first_order) + self.assertIn('timestamp', first_order) From 9e690802d54aca8a6157a1d2e36d199e04d90e5a Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Mon, 4 Nov 2024 19:27:38 +0100 Subject: [PATCH 10/11] Linting after adding tests --- backend/apps/ecommerce/resolvers.py | 1 - backend/apps/ecommerce/tests.py | 37 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/backend/apps/ecommerce/resolvers.py b/backend/apps/ecommerce/resolvers.py index 43e7be517..9afb217ef 100644 --- a/backend/apps/ecommerce/resolvers.py +++ b/backend/apps/ecommerce/resolvers.py @@ -55,7 +55,6 @@ def resolve_paginated_shop_orders(self, info, limit, offset): orders = orders[:limit] return orders - @staff_member_required def resolve_orders_by_status(self, info: "ResolveInfo", product_id, status): orders = Order.objects.filter(product_id=product_id, payment_status=status) diff --git a/backend/apps/ecommerce/tests.py b/backend/apps/ecommerce/tests.py index 44d863b61..ef755d9d1 100644 --- a/backend/apps/ecommerce/tests.py +++ b/backend/apps/ecommerce/tests.py @@ -301,7 +301,6 @@ def test_unauthorized_user_initiate_order(self): @patch("requests.get", side_effect=setup_mock_get()) @patch("requests.post", side_effect=setup_mock_post()) @patch("requests.put", side_effect=setup_mock_put()) - def test_authorized_user_initiate_order(self, *args, **kwargs) -> None: # Scenario 1: Requesting more than available is not allowed response = self.query(self.INITIATE_ORDER_MUTATION(self.total_quantity + 1), user=self.indok_user) @@ -463,7 +462,7 @@ def test_delivered_product(self) -> None: class PaginatedShopOrdersResolverTests(ExtendedGraphQLTestCase): def setUp(self): # Create a staff user using the StaffUserFactory - self.staff_user = StaffUserFactory(username='staffuser') + self.staff_user = StaffUserFactory(username="staffuser") # Ensure the user satisfies the requirements for the new decorators self.staff_user.is_staff = True # Required for @staff_member_required @@ -472,12 +471,12 @@ def setUp(self): # Create a product with `shop_item=True` to pass the resolver's filter condition self.product = ProductFactory( - name='Test Product', - price=decimal.Decimal('1000.00'), - description='A test product description', + name="Test Product", + price=decimal.Decimal("1000.00"), + description="A test product description", max_buyable_quantity=2, total_quantity=5, - shop_item=True # Ensure this matches the resolver's filter condition + shop_item=True, # Ensure this matches the resolver's filter condition ) # Create multiple orders associated with the product and user @@ -491,7 +490,7 @@ def setUp(self): ] def test_paginated_shop_orders_with_fragment_and_product(self): - query = ''' + query = """ query paginatedShopOrders($limit: Int, $offset: Int) { paginatedShopOrders(limit: $limit, offset: $offset) { ...Order @@ -518,25 +517,25 @@ def test_paginated_shop_orders_with_fragment_and_product(self): maxBuyableQuantity shopItem } - ''' + """ # Execute the query using the query method from ExtendedGraphQLTestCase response = self.query(query, variables={"limit": 5, "offset": 2}, user=self.staff_user) # Use staff user data = json.loads(response.content) # Check if the response data matches expectations - self.assertIn('data', data) - self.assertIn('paginatedShopOrders', data['data']) - self.assertEqual(len(data['data']['paginatedShopOrders']), 5) + self.assertIn("data", data) + self.assertIn("paginatedShopOrders", data["data"]) + self.assertEqual(len(data["data"]["paginatedShopOrders"]), 5) # Verify the structure of the nested product field in the first order - first_order = data['data']['paginatedShopOrders'][0] - self.assertIn('product', first_order) - self.assertEqual(first_order['product']['name'], 'Test Product') - self.assertEqual(first_order['product']['price'], '1000.00') # Adjusted for consistency - self.assertTrue(first_order['product']['shopItem']) + first_order = data["data"]["paginatedShopOrders"][0] + self.assertIn("product", first_order) + self.assertEqual(first_order["product"]["name"], "Test Product") + self.assertEqual(first_order["product"]["price"], "1000.00") # Adjusted for consistency + self.assertTrue(first_order["product"]["shopItem"]) # Additional checks for other fields - self.assertIn('quantity', first_order) - self.assertIn('paymentStatus', first_order) - self.assertIn('timestamp', first_order) + self.assertIn("quantity", first_order) + self.assertIn("paymentStatus", first_order) + self.assertIn("timestamp", first_order) From 503ba0071cf1b8fedc3a990f2532cf2beea67c03 Mon Sep 17 00:00:00 2001 From: erikaas24 Date: Thu, 7 Nov 2024 17:10:42 +0100 Subject: [PATCH 11/11] Add button so that you can navigate directly to first page of table --- .../components/pages/organization/OrgShop.tsx | 2 +- .../components/pages/orgs/TableStepper.tsx | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/pages/organization/OrgShop.tsx b/frontend/src/components/pages/organization/OrgShop.tsx index e206fe8ba..f6404a007 100644 --- a/frontend/src/components/pages/organization/OrgShop.tsx +++ b/frontend/src/components/pages/organization/OrgShop.tsx @@ -13,7 +13,7 @@ type Props = { }; export const OrgProducts: React.FC = ({ organization }) => { const theme = useTheme(); - const limit = 100; + const limit = 5; const [page, setPage] = useState(0); const handlePageChange = (newValue: number) => { diff --git a/frontend/src/components/pages/orgs/TableStepper.tsx b/frontend/src/components/pages/orgs/TableStepper.tsx index 5c85d43db..1c84a2074 100644 --- a/frontend/src/components/pages/orgs/TableStepper.tsx +++ b/frontend/src/components/pages/orgs/TableStepper.tsx @@ -1,4 +1,4 @@ -import { KeyboardArrowLeft, KeyboardArrowRight } from "@mui/icons-material"; +import { KeyboardArrowLeft, KeyboardArrowRight, KeyboardDoubleArrowLeft, KeyboardDoubleArrowRight } from "@mui/icons-material"; import { Button, Typography, Stack } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import React from "react"; @@ -13,18 +13,22 @@ export const TableStepper: React.FC = ({ hasNextPage, page, handlePageCha const theme = useTheme(); const nextPage = () => handlePageChange(page + 1); const prevPage = () => handlePageChange(page > 0 ? page - 1 : 0); - - // Check if there is a next page (if we received less than `limit` items) - //const hasNextPage = (data?.paginatedShopOrders && data.paginatedShopOrders.length < limit) ?? false; + const resetPage = () => handlePageChange(0) return ( - + + + + {page + 1}