import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; 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 }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; Date: any; DateTime: any; I18NLocaleCode: any; JSON: any; Upload: any; }; export type BooleanFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type DateFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type DateTimeFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export enum Enum_Page_Type { tos = 'tos' } export enum Enum_Userspermissionsuser_Lang { en = 'en', fr = 'fr' } export type EmailDesignerEmailTemplate = { __typename?: 'EmailDesignerEmailTemplate'; bodyHtml?: Maybe; bodyText?: Maybe; createdAt?: Maybe; design?: Maybe; enabled?: Maybe; name?: Maybe; subject?: Maybe; tags?: Maybe; templateReferenceId?: Maybe; updatedAt?: Maybe; }; export type EmailDesignerEmailTemplateEntity = { __typename?: 'EmailDesignerEmailTemplateEntity'; attributes?: Maybe; id?: Maybe; }; export type EmailDesignerEmailTemplateEntityResponse = { __typename?: 'EmailDesignerEmailTemplateEntityResponse'; data?: Maybe; }; export type EmailDesignerEmailTemplateEntityResponseCollection = { __typename?: 'EmailDesignerEmailTemplateEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type EmailDesignerEmailTemplateFiltersInput = { and?: InputMaybe>>; bodyHtml?: InputMaybe; bodyText?: InputMaybe; createdAt?: InputMaybe; design?: InputMaybe; enabled?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; subject?: InputMaybe; tags?: InputMaybe; templateReferenceId?: InputMaybe; updatedAt?: InputMaybe; }; export type EmailDesignerEmailTemplateInput = { bodyHtml?: InputMaybe; bodyText?: InputMaybe; design?: InputMaybe; enabled?: InputMaybe; name?: InputMaybe; subject?: InputMaybe; tags?: InputMaybe; templateReferenceId?: InputMaybe; }; export type Event = { __typename?: 'Event'; address?: Maybe; createdAt?: Maybe; date?: Maybe; description?: Maybe; email: Scalars['String']; latitude?: Maybe; longitude?: Maybe; name: Scalars['String']; passengers?: Maybe; position?: Maybe; travels?: Maybe; updatedAt?: Maybe; uuid?: Maybe; waitingPassengers?: Maybe; }; export type EventPassengersArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type EventTravelsArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type EventEntity = { __typename?: 'EventEntity'; attributes?: Maybe; id?: Maybe; }; export type EventEntityResponse = { __typename?: 'EventEntityResponse'; data?: Maybe; }; export type EventFiltersInput = { address?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; date?: InputMaybe; description?: InputMaybe; email?: InputMaybe; id?: InputMaybe; latitude?: InputMaybe; longitude?: InputMaybe; name?: InputMaybe; newsletter?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; passengers?: InputMaybe; position?: InputMaybe; travels?: InputMaybe; updatedAt?: InputMaybe; users?: InputMaybe; uuid?: InputMaybe; }; export type EventInput = { address?: InputMaybe; date?: InputMaybe; description?: InputMaybe; email?: InputMaybe; latitude?: InputMaybe; longitude?: InputMaybe; name?: InputMaybe; newsletter?: InputMaybe; passengers?: InputMaybe>>; position?: InputMaybe; travels?: InputMaybe>>; users?: InputMaybe>>; uuid?: InputMaybe; }; export type EventRelationResponseCollection = { __typename?: 'EventRelationResponseCollection'; data: Array; }; export type FileInfoInput = { alternativeText?: InputMaybe; caption?: InputMaybe; name?: InputMaybe; }; export type FloatFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type GenericMorph = EmailDesignerEmailTemplate | Event | I18NLocale | Page | Passenger | Setting | Travel | UploadFile | UploadFolder | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser | Vehicle; export type I18NLocale = { __typename?: 'I18NLocale'; code?: Maybe; createdAt?: Maybe; name?: Maybe; updatedAt?: Maybe; }; export type I18NLocaleEntity = { __typename?: 'I18NLocaleEntity'; attributes?: Maybe; id?: Maybe; }; export type I18NLocaleEntityResponse = { __typename?: 'I18NLocaleEntityResponse'; data?: Maybe; }; export type I18NLocaleEntityResponseCollection = { __typename?: 'I18NLocaleEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type I18NLocaleFiltersInput = { and?: InputMaybe>>; code?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; updatedAt?: InputMaybe; }; export type IdFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type IntFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type JsonFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type Mutation = { __typename?: 'Mutation'; /** Change user password. Confirm with the current password. */ changePassword?: Maybe; createEmailDesignerEmailTemplate?: Maybe; createEvent?: Maybe; createPage?: Maybe; /** Create a passenger */ createPassenger?: Maybe; createSettingLocalization?: Maybe; createTravel?: Maybe; createUploadFile?: Maybe; createUploadFolder?: Maybe; /** Create a new role */ createUsersPermissionsRole?: Maybe; /** Create a new user */ createUsersPermissionsUser: UsersPermissionsUserEntityResponse; createVehicle?: Maybe; deleteEmailDesignerEmailTemplate?: Maybe; deleteEvent?: Maybe; deletePage?: Maybe; deletePassenger?: Maybe; deleteSetting?: Maybe; deleteTravel?: Maybe; deleteUploadFile?: Maybe; deleteUploadFolder?: Maybe; /** Delete an existing role */ deleteUsersPermissionsRole?: Maybe; /** Delete an existing user */ deleteUsersPermissionsUser: UsersPermissionsUserEntityResponse; deleteVehicle?: Maybe; /** Confirm an email users email address */ emailConfirmation?: Maybe; /** Request a reset password token */ forgotPassword?: Maybe; login: UsersPermissionsLoginPayload; multipleUpload: Array>; /** Register a user */ register: UsersPermissionsLoginPayload; removeFile?: Maybe; /** Reset user password. Confirm with a code (resetToken from forgotPassword) */ resetPassword?: Maybe; updateEmailDesignerEmailTemplate?: Maybe; updateEvent?: Maybe; /** Update an event using its UUID */ updateEventByUUID?: Maybe; updateFileInfo: UploadFileEntityResponse; updateMe: UsersPermissionsUserEntityResponse; updatePage?: Maybe; updatePassenger?: Maybe; updateSetting?: Maybe; updateTravel?: Maybe; updateUploadFile?: Maybe; updateUploadFolder?: Maybe; /** Update an existing role */ updateUsersPermissionsRole?: Maybe; /** Update an existing user */ updateUsersPermissionsUser: UsersPermissionsUserEntityResponse; updateVehicle?: Maybe; upload: UploadFileEntityResponse; }; export type MutationChangePasswordArgs = { currentPassword: Scalars['String']; password: Scalars['String']; passwordConfirmation: Scalars['String']; }; export type MutationCreateEmailDesignerEmailTemplateArgs = { data: EmailDesignerEmailTemplateInput; }; export type MutationCreateEventArgs = { data: EventInput; }; export type MutationCreatePageArgs = { data: PageInput; }; export type MutationCreatePassengerArgs = { data: PassengerInput; }; export type MutationCreateSettingLocalizationArgs = { data?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; }; export type MutationCreateTravelArgs = { createVehicle?: InputMaybe; data: TravelInput; }; export type MutationCreateUploadFileArgs = { data: UploadFileInput; }; export type MutationCreateUploadFolderArgs = { data: UploadFolderInput; }; export type MutationCreateUsersPermissionsRoleArgs = { data: UsersPermissionsRoleInput; }; export type MutationCreateUsersPermissionsUserArgs = { data: UsersPermissionsUserInput; }; export type MutationCreateVehicleArgs = { data: VehicleInput; }; export type MutationDeleteEmailDesignerEmailTemplateArgs = { id: Scalars['ID']; }; export type MutationDeleteEventArgs = { id: Scalars['ID']; }; export type MutationDeletePageArgs = { id: Scalars['ID']; }; export type MutationDeletePassengerArgs = { id: Scalars['ID']; }; export type MutationDeleteSettingArgs = { locale?: InputMaybe; }; export type MutationDeleteTravelArgs = { id: Scalars['ID']; }; export type MutationDeleteUploadFileArgs = { id: Scalars['ID']; }; export type MutationDeleteUploadFolderArgs = { id: Scalars['ID']; }; export type MutationDeleteUsersPermissionsRoleArgs = { id: Scalars['ID']; }; export type MutationDeleteUsersPermissionsUserArgs = { id: Scalars['ID']; }; export type MutationDeleteVehicleArgs = { id: Scalars['ID']; }; export type MutationEmailConfirmationArgs = { confirmation: Scalars['String']; }; export type MutationForgotPasswordArgs = { email: Scalars['String']; }; export type MutationLoginArgs = { input: UsersPermissionsLoginInput; }; export type MutationMultipleUploadArgs = { field?: InputMaybe; files: Array>; ref?: InputMaybe; refId?: InputMaybe; }; export type MutationRegisterArgs = { input: UsersPermissionsRegisterInput; }; export type MutationRemoveFileArgs = { id: Scalars['ID']; }; export type MutationResetPasswordArgs = { code: Scalars['String']; password: Scalars['String']; passwordConfirmation: Scalars['String']; }; export type MutationUpdateEmailDesignerEmailTemplateArgs = { data: EmailDesignerEmailTemplateInput; id: Scalars['ID']; }; export type MutationUpdateEventArgs = { data: EventInput; id: Scalars['ID']; }; export type MutationUpdateEventByUuidArgs = { data: EventInput; uuid: Scalars['String']; }; export type MutationUpdateFileInfoArgs = { id: Scalars['ID']; info?: InputMaybe; }; export type MutationUpdateMeArgs = { data: UsersPermissionsUserInput; }; export type MutationUpdatePageArgs = { data: PageInput; id: Scalars['ID']; }; export type MutationUpdatePassengerArgs = { data: PassengerInput; id: Scalars['ID']; }; export type MutationUpdateSettingArgs = { data: SettingInput; locale?: InputMaybe; }; export type MutationUpdateTravelArgs = { data: TravelInput; id: Scalars['ID']; }; export type MutationUpdateUploadFileArgs = { data: UploadFileInput; id: Scalars['ID']; }; export type MutationUpdateUploadFolderArgs = { data: UploadFolderInput; id: Scalars['ID']; }; export type MutationUpdateUsersPermissionsRoleArgs = { data: UsersPermissionsRoleInput; id: Scalars['ID']; }; export type MutationUpdateUsersPermissionsUserArgs = { data: UsersPermissionsUserInput; id: Scalars['ID']; }; export type MutationUpdateVehicleArgs = { data: VehicleInput; id: Scalars['ID']; }; export type MutationUploadArgs = { field?: InputMaybe; file: Scalars['Upload']; info?: InputMaybe; ref?: InputMaybe; refId?: InputMaybe; }; export type Page = { __typename?: 'Page'; content?: Maybe; createdAt?: Maybe; name: Scalars['String']; type?: Maybe; updatedAt?: Maybe; }; export type PageEntity = { __typename?: 'PageEntity'; attributes?: Maybe; id?: Maybe; }; export type PageEntityResponse = { __typename?: 'PageEntityResponse'; data?: Maybe; }; export type PageEntityResponseCollection = { __typename?: 'PageEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type PageFiltersInput = { and?: InputMaybe>>; content?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; type?: InputMaybe; updatedAt?: InputMaybe; }; export type PageInput = { content?: InputMaybe; name?: InputMaybe; type?: InputMaybe; }; export type Pagination = { __typename?: 'Pagination'; page: Scalars['Int']; pageCount: Scalars['Int']; pageSize: Scalars['Int']; total: Scalars['Int']; }; export type PaginationArg = { limit?: InputMaybe; page?: InputMaybe; pageSize?: InputMaybe; start?: InputMaybe; }; export type Passenger = { __typename?: 'Passenger'; createdAt?: Maybe; email?: Maybe; event?: Maybe; location?: Maybe; name: Scalars['String']; travel?: Maybe; updatedAt?: Maybe; user?: Maybe; }; export type PassengerEntity = { __typename?: 'PassengerEntity'; attributes?: Maybe; id?: Maybe; }; export type PassengerEntityResponse = { __typename?: 'PassengerEntityResponse'; data?: Maybe; }; export type PassengerFiltersInput = { and?: InputMaybe>>; createdAt?: InputMaybe; email?: InputMaybe; event?: InputMaybe; id?: InputMaybe; location?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; travel?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type PassengerInput = { email?: InputMaybe; event?: InputMaybe; location?: InputMaybe; name?: InputMaybe; travel?: InputMaybe; user?: InputMaybe; }; export type PassengerRelationResponseCollection = { __typename?: 'PassengerRelationResponseCollection'; data: Array; }; export type Query = { __typename?: 'Query'; emailDesignerEmailTemplate?: Maybe; emailDesignerEmailTemplates?: Maybe; event?: Maybe; /** Retrieve an event using its UUID */ eventByUUID?: Maybe; i18NLocale?: Maybe; i18NLocales?: Maybe; me?: Maybe; page?: Maybe; pages?: Maybe; passenger?: Maybe; setting?: Maybe; travel?: Maybe; uploadFile?: Maybe; uploadFiles?: Maybe; uploadFolder?: Maybe; uploadFolders?: Maybe; usersPermissionsRole?: Maybe; usersPermissionsRoles?: Maybe; usersPermissionsUser?: Maybe; vehicle?: Maybe; }; export type QueryEmailDesignerEmailTemplateArgs = { id?: InputMaybe; }; export type QueryEmailDesignerEmailTemplatesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryEventArgs = { id?: InputMaybe; }; export type QueryEventByUuidArgs = { uuid: Scalars['String']; }; export type QueryI18NLocaleArgs = { id?: InputMaybe; }; export type QueryI18NLocalesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryPageArgs = { id?: InputMaybe; }; export type QueryPagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryPassengerArgs = { id?: InputMaybe; }; export type QuerySettingArgs = { locale?: InputMaybe; }; export type QueryTravelArgs = { id?: InputMaybe; }; export type QueryUploadFileArgs = { id?: InputMaybe; }; export type QueryUploadFilesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryUploadFolderArgs = { id?: InputMaybe; }; export type QueryUploadFoldersArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryUsersPermissionsRoleArgs = { id?: InputMaybe; }; export type QueryUsersPermissionsRolesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type QueryUsersPermissionsUserArgs = { id?: InputMaybe; }; export type QueryVehicleArgs = { id?: InputMaybe; }; export type ResponseCollectionMeta = { __typename?: 'ResponseCollectionMeta'; pagination: Pagination; }; export type Setting = { __typename?: 'Setting'; about_link?: Maybe; announcement?: Maybe; code_link?: Maybe; createdAt?: Maybe; faq_link?: Maybe; gtm_id?: Maybe; locale?: Maybe; localizations?: Maybe; matomo_script_url?: Maybe; opencollective_link?: Maybe; updatedAt?: Maybe; }; export type SettingEntity = { __typename?: 'SettingEntity'; attributes?: Maybe; id?: Maybe; }; export type SettingEntityResponse = { __typename?: 'SettingEntityResponse'; data?: Maybe; }; export type SettingInput = { about_link?: InputMaybe; announcement?: InputMaybe; code_link?: InputMaybe; faq_link?: InputMaybe; gtm_id?: InputMaybe; matomo_script_url?: InputMaybe; opencollective_link?: InputMaybe; }; export type SettingRelationResponseCollection = { __typename?: 'SettingRelationResponseCollection'; data: Array; }; export type StringFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; contains?: InputMaybe; containsi?: InputMaybe; endsWith?: InputMaybe; eq?: InputMaybe; eqi?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>>; lt?: InputMaybe; lte?: InputMaybe; ne?: InputMaybe; not?: InputMaybe; notContains?: InputMaybe; notContainsi?: InputMaybe; notIn?: InputMaybe>>; notNull?: InputMaybe; null?: InputMaybe; or?: InputMaybe>>; startsWith?: InputMaybe; }; export type Travel = { __typename?: 'Travel'; createdAt?: Maybe; departure?: Maybe; details?: Maybe; event?: Maybe; meeting?: Maybe; meeting_latitude?: Maybe; meeting_longitude?: Maybe; passengers?: Maybe; phone_number?: Maybe; seats?: Maybe; updatedAt?: Maybe; vehicleName?: Maybe; }; export type TravelPassengersArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type TravelEntity = { __typename?: 'TravelEntity'; attributes?: Maybe; id?: Maybe; }; export type TravelEntityResponse = { __typename?: 'TravelEntityResponse'; data?: Maybe; }; export type TravelFiltersInput = { and?: InputMaybe>>; createdAt?: InputMaybe; departure?: InputMaybe; details?: InputMaybe; event?: InputMaybe; id?: InputMaybe; meeting?: InputMaybe; meeting_latitude?: InputMaybe; meeting_longitude?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; passengers?: InputMaybe; phone_number?: InputMaybe; seats?: InputMaybe; updatedAt?: InputMaybe; vehicleName?: InputMaybe; }; export type TravelInput = { departure?: InputMaybe; details?: InputMaybe; event?: InputMaybe; meeting?: InputMaybe; meeting_latitude?: InputMaybe; meeting_longitude?: InputMaybe; passengers?: InputMaybe>>; phone_number?: InputMaybe; seats?: InputMaybe; vehicleName?: InputMaybe; }; export type TravelRelationResponseCollection = { __typename?: 'TravelRelationResponseCollection'; data: Array; }; export type UploadFile = { __typename?: 'UploadFile'; alternativeText?: Maybe; caption?: Maybe; createdAt?: Maybe; ext?: Maybe; formats?: Maybe; hash: Scalars['String']; height?: Maybe; mime: Scalars['String']; name: Scalars['String']; previewUrl?: Maybe; provider: Scalars['String']; provider_metadata?: Maybe; related?: Maybe>>; size: Scalars['Float']; updatedAt?: Maybe; url: Scalars['String']; width?: Maybe; }; export type UploadFileEntity = { __typename?: 'UploadFileEntity'; attributes?: Maybe; id?: Maybe; }; export type UploadFileEntityResponse = { __typename?: 'UploadFileEntityResponse'; data?: Maybe; }; export type UploadFileEntityResponseCollection = { __typename?: 'UploadFileEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type UploadFileFiltersInput = { alternativeText?: InputMaybe; and?: InputMaybe>>; caption?: InputMaybe; createdAt?: InputMaybe; ext?: InputMaybe; folder?: InputMaybe; folderPath?: InputMaybe; formats?: InputMaybe; hash?: InputMaybe; height?: InputMaybe; id?: InputMaybe; mime?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; previewUrl?: InputMaybe; provider?: InputMaybe; provider_metadata?: InputMaybe; size?: InputMaybe; updatedAt?: InputMaybe; url?: InputMaybe; width?: InputMaybe; }; export type UploadFileInput = { alternativeText?: InputMaybe; caption?: InputMaybe; ext?: InputMaybe; folder?: InputMaybe; folderPath?: InputMaybe; formats?: InputMaybe; hash?: InputMaybe; height?: InputMaybe; mime?: InputMaybe; name?: InputMaybe; previewUrl?: InputMaybe; provider?: InputMaybe; provider_metadata?: InputMaybe; size?: InputMaybe; url?: InputMaybe; width?: InputMaybe; }; export type UploadFileRelationResponseCollection = { __typename?: 'UploadFileRelationResponseCollection'; data: Array; }; export type UploadFolder = { __typename?: 'UploadFolder'; children?: Maybe; createdAt?: Maybe; files?: Maybe; name: Scalars['String']; parent?: Maybe; path: Scalars['String']; pathId: Scalars['Int']; updatedAt?: Maybe; }; export type UploadFolderChildrenArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UploadFolderFilesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UploadFolderEntity = { __typename?: 'UploadFolderEntity'; attributes?: Maybe; id?: Maybe; }; export type UploadFolderEntityResponse = { __typename?: 'UploadFolderEntityResponse'; data?: Maybe; }; export type UploadFolderEntityResponseCollection = { __typename?: 'UploadFolderEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type UploadFolderFiltersInput = { and?: InputMaybe>>; children?: InputMaybe; createdAt?: InputMaybe; files?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; parent?: InputMaybe; path?: InputMaybe; pathId?: InputMaybe; updatedAt?: InputMaybe; }; export type UploadFolderInput = { children?: InputMaybe>>; files?: InputMaybe>>; name?: InputMaybe; parent?: InputMaybe; path?: InputMaybe; pathId?: InputMaybe; }; export type UploadFolderRelationResponseCollection = { __typename?: 'UploadFolderRelationResponseCollection'; data: Array; }; export type UsersPermissionsCreateRolePayload = { __typename?: 'UsersPermissionsCreateRolePayload'; ok: Scalars['Boolean']; }; export type UsersPermissionsDeleteRolePayload = { __typename?: 'UsersPermissionsDeleteRolePayload'; ok: Scalars['Boolean']; }; export type UsersPermissionsLoginInput = { identifier: Scalars['String']; password: Scalars['String']; provider?: Scalars['String']; }; export type UsersPermissionsLoginPayload = { __typename?: 'UsersPermissionsLoginPayload'; jwt?: Maybe; user: UsersPermissionsMe; }; export type UsersPermissionsMe = { __typename?: 'UsersPermissionsMe'; blocked?: Maybe; confirmed?: Maybe; email?: Maybe; id: Scalars['ID']; profile?: Maybe; role?: Maybe; username: Scalars['String']; }; export type UsersPermissionsMeRole = { __typename?: 'UsersPermissionsMeRole'; description?: Maybe; id: Scalars['ID']; name: Scalars['String']; type?: Maybe; }; export type UsersPermissionsPasswordPayload = { __typename?: 'UsersPermissionsPasswordPayload'; ok: Scalars['Boolean']; }; export type UsersPermissionsPermission = { __typename?: 'UsersPermissionsPermission'; action: Scalars['String']; createdAt?: Maybe; role?: Maybe; updatedAt?: Maybe; }; export type UsersPermissionsPermissionEntity = { __typename?: 'UsersPermissionsPermissionEntity'; attributes?: Maybe; id?: Maybe; }; export type UsersPermissionsPermissionFiltersInput = { action?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; id?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; role?: InputMaybe; updatedAt?: InputMaybe; }; export type UsersPermissionsPermissionRelationResponseCollection = { __typename?: 'UsersPermissionsPermissionRelationResponseCollection'; data: Array; }; export type UsersPermissionsRegisterInput = { email: Scalars['String']; firstName?: InputMaybe; lang?: InputMaybe; lastName?: InputMaybe; newsletterConsent?: InputMaybe; password: Scalars['String']; username: Scalars['String']; }; export type UsersPermissionsRole = { __typename?: 'UsersPermissionsRole'; createdAt?: Maybe; description?: Maybe; name: Scalars['String']; permissions?: Maybe; type?: Maybe; updatedAt?: Maybe; users?: Maybe; }; export type UsersPermissionsRolePermissionsArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UsersPermissionsRoleUsersArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UsersPermissionsRoleEntity = { __typename?: 'UsersPermissionsRoleEntity'; attributes?: Maybe; id?: Maybe; }; export type UsersPermissionsRoleEntityResponse = { __typename?: 'UsersPermissionsRoleEntityResponse'; data?: Maybe; }; export type UsersPermissionsRoleEntityResponseCollection = { __typename?: 'UsersPermissionsRoleEntityResponseCollection'; data: Array; meta: ResponseCollectionMeta; }; export type UsersPermissionsRoleFiltersInput = { and?: InputMaybe>>; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; permissions?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; users?: InputMaybe; }; export type UsersPermissionsRoleInput = { description?: InputMaybe; name?: InputMaybe; permissions?: InputMaybe>>; type?: InputMaybe; users?: InputMaybe>>; }; export type UsersPermissionsUpdateRolePayload = { __typename?: 'UsersPermissionsUpdateRolePayload'; ok: Scalars['Boolean']; }; export type UsersPermissionsUser = { __typename?: 'UsersPermissionsUser'; confirmed?: Maybe; createdAt?: Maybe; email: Scalars['String']; events?: Maybe; firstName?: Maybe; lang?: Maybe; lastName?: Maybe; newsletterConsent?: Maybe; onboardingCreator?: Maybe; onboardingUser?: Maybe; provider?: Maybe; role?: Maybe; updatedAt?: Maybe; username: Scalars['String']; vehicles?: Maybe; }; export type UsersPermissionsUserEventsArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UsersPermissionsUserVehiclesArgs = { filters?: InputMaybe; pagination?: InputMaybe; sort?: InputMaybe>>; }; export type UsersPermissionsUserEntity = { __typename?: 'UsersPermissionsUserEntity'; attributes?: Maybe; id?: Maybe; }; export type UsersPermissionsUserEntityResponse = { __typename?: 'UsersPermissionsUserEntityResponse'; data?: Maybe; }; export type UsersPermissionsUserFiltersInput = { and?: InputMaybe>>; blocked?: InputMaybe; confirmationToken?: InputMaybe; confirmed?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; events?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; lang?: InputMaybe; lastName?: InputMaybe; newsletterConsent?: InputMaybe; not?: InputMaybe; onboardingCreator?: InputMaybe; onboardingUser?: InputMaybe; or?: InputMaybe>>; passengers?: InputMaybe; password?: InputMaybe; provider?: InputMaybe; resetPasswordToken?: InputMaybe; role?: InputMaybe; updatedAt?: InputMaybe; username?: InputMaybe; vehicles?: InputMaybe; }; export type UsersPermissionsUserInput = { blocked?: InputMaybe; confirmationToken?: InputMaybe; confirmed?: InputMaybe; email?: InputMaybe; events?: InputMaybe>>; firstName?: InputMaybe; lang?: InputMaybe; lastName?: InputMaybe; newsletterConsent?: InputMaybe; oldPassword?: InputMaybe; onboardingCreator?: InputMaybe; onboardingUser?: InputMaybe; passengers?: InputMaybe>>; password?: InputMaybe; provider?: InputMaybe; resetPasswordToken?: InputMaybe; role?: InputMaybe; username?: InputMaybe; vehicles?: InputMaybe>>; }; export type UsersPermissionsUserRelationResponseCollection = { __typename?: 'UsersPermissionsUserRelationResponseCollection'; data: Array; }; export type Vehicle = { __typename?: 'Vehicle'; createdAt?: Maybe; name: Scalars['String']; phone_number?: Maybe; seats?: Maybe; updatedAt?: Maybe; user?: Maybe; }; export type VehicleEntity = { __typename?: 'VehicleEntity'; attributes?: Maybe; id?: Maybe; }; export type VehicleEntityResponse = { __typename?: 'VehicleEntityResponse'; data?: Maybe; }; export type VehicleFiltersInput = { and?: InputMaybe>>; createdAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; phone_number?: InputMaybe; seats?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type VehicleInput = { name?: InputMaybe; phone_number?: InputMaybe; seats?: InputMaybe; user?: InputMaybe; }; export type VehicleRelationResponseCollection = { __typename?: 'VehicleRelationResponseCollection'; data: Array; }; export type MeFieldsFragment = { __typename?: 'UsersPermissionsMe', id: string, username: string, email?: string | null, confirmed?: boolean | null }; export type RegisterMutationVariables = Exact<{ user: UsersPermissionsRegisterInput; }>; export type RegisterMutation = { __typename?: 'Mutation', register: { __typename?: 'UsersPermissionsLoginPayload', jwt?: string | null, user: { __typename?: 'UsersPermissionsMe', id: string, username: string, email?: string | null, confirmed?: boolean | null } } }; export type ForgotPasswordMutationVariables = Exact<{ email: Scalars['String']; }>; export type ForgotPasswordMutation = { __typename?: 'Mutation', forgotPassword?: { __typename?: 'UsersPermissionsPasswordPayload', ok: boolean } | null }; export type ResetPasswordMutationVariables = Exact<{ password: Scalars['String']; passwordConfirmation: Scalars['String']; code: Scalars['String']; }>; export type ResetPasswordMutation = { __typename?: 'Mutation', resetPassword?: { __typename?: 'UsersPermissionsLoginPayload', jwt?: string | null, user: { __typename?: 'UsersPermissionsMe', id: string, username: string, email?: string | null, confirmed?: boolean | null } } | null }; export type EventFieldsFragment = { __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, description?: string | null, email: string, date?: any | null, address?: string | null, latitude?: number | null, longitude?: number | null, position?: any | null, waitingPassengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, email?: string | null, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null, travels?: { __typename?: 'TravelRelationResponseCollection', data: Array<{ __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null }> } | null } | null }; export type CreateEventMutationVariables = Exact<{ name: Scalars['String']; email: Scalars['String']; date?: InputMaybe; address?: InputMaybe; latitude?: InputMaybe; longitude?: InputMaybe; description?: InputMaybe; newsletter?: InputMaybe; }>; export type CreateEventMutation = { __typename?: 'Mutation', createEvent?: { __typename?: 'EventEntityResponse', data?: { __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, description?: string | null, email: string, date?: any | null, address?: string | null, latitude?: number | null, longitude?: number | null, position?: any | null, waitingPassengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, email?: string | null, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null, travels?: { __typename?: 'TravelRelationResponseCollection', data: Array<{ __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null }> } | null } | null } | null } | null }; export type UpdateEventMutationVariables = Exact<{ uuid: Scalars['String']; eventUpdate: EventInput; }>; export type UpdateEventMutation = { __typename?: 'Mutation', updateEventByUUID?: { __typename?: 'EventEntityResponse', data?: { __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, description?: string | null, email: string, date?: any | null, address?: string | null, latitude?: number | null, longitude?: number | null, position?: any | null, waitingPassengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, email?: string | null, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null, travels?: { __typename?: 'TravelRelationResponseCollection', data: Array<{ __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null }> } | null } | null } | null } | null }; export type EventByUuidQueryVariables = Exact<{ uuid: Scalars['String']; }>; export type EventByUuidQuery = { __typename?: 'Query', eventByUUID?: { __typename?: 'EventEntityResponse', data?: { __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, description?: string | null, email: string, date?: any | null, address?: string | null, latitude?: number | null, longitude?: number | null, position?: any | null, waitingPassengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, email?: string | null, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null, travels?: { __typename?: 'TravelRelationResponseCollection', data: Array<{ __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null }> } | null } | null } | null } | null }; export type PassengerFieldsFragment = { __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, email?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }; export type CreatePassengerMutationVariables = Exact<{ passenger: PassengerInput; }>; export type CreatePassengerMutation = { __typename?: 'Mutation', createPassenger?: { __typename?: 'PassengerEntityResponse', data?: { __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, email?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null } | null } | null }; export type UpdatePassengerMutationVariables = Exact<{ id: Scalars['ID']; passengerUpdate: PassengerInput; }>; export type UpdatePassengerMutation = { __typename?: 'Mutation', updatePassenger?: { __typename?: 'PassengerEntityResponse', data?: { __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, email?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null } | null } | null }; export type DeletePassengerMutationVariables = Exact<{ id: Scalars['ID']; }>; export type DeletePassengerMutation = { __typename?: 'Mutation', deletePassenger?: { __typename?: 'PassengerEntityResponse', data?: { __typename?: 'PassengerEntity', id?: string | null } | null } | null }; export type SettingQueryVariables = Exact<{ locale: Scalars['I18NLocaleCode']; }>; export type SettingQuery = { __typename?: 'Query', setting?: { __typename?: 'SettingEntityResponse', data?: { __typename?: 'SettingEntity', id?: string | null, attributes?: { __typename?: 'Setting', gtm_id?: string | null, about_link?: string | null, faq_link?: string | null, announcement?: string | null, matomo_script_url?: string | null, opencollective_link?: string | null } | null } | null } | null }; export type TravelFieldsFragment = { __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null }; export type CreateTravelMutationVariables = Exact<{ travel: TravelInput; createVehicle?: InputMaybe; }>; export type CreateTravelMutation = { __typename?: 'Mutation', createTravel?: { __typename?: 'TravelEntityResponse', data?: { __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null } | null } | null }; export type UpdateTravelMutationVariables = Exact<{ id: Scalars['ID']; travelUpdate: TravelInput; }>; export type UpdateTravelMutation = { __typename?: 'Mutation', updateTravel?: { __typename?: 'TravelEntityResponse', data?: { __typename?: 'TravelEntity', id?: string | null, attributes?: { __typename?: 'Travel', meeting?: string | null, meeting_latitude?: number | null, meeting_longitude?: number | null, departure?: any | null, details?: string | null, vehicleName?: string | null, phone_number?: string | null, seats?: number | null, passengers?: { __typename?: 'PassengerRelationResponseCollection', data: Array<{ __typename?: 'PassengerEntity', id?: string | null, attributes?: { __typename?: 'Passenger', name: string, location?: string | null, user?: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }> } | null } | null } | null } | null }; export type DeleteTravelMutationVariables = Exact<{ id: Scalars['ID']; }>; export type DeleteTravelMutation = { __typename?: 'Mutation', deleteTravel?: { __typename?: 'TravelEntityResponse', data?: { __typename?: 'TravelEntity', id?: string | null } | null } | null }; export type UserFieldsFragment = { __typename?: 'UsersPermissionsUser', username: string, email: string, confirmed?: boolean | null, lastName?: string | null, firstName?: string | null, lang?: Enum_Userspermissionsuser_Lang | null, onboardingUser?: boolean | null, onboardingCreator?: boolean | null, provider?: string | null, events?: { __typename?: 'EventRelationResponseCollection', data: Array<{ __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, date?: any | null, address?: string | null } | null }> } | null }; export type ProfileQueryVariables = Exact<{ [key: string]: never; }>; export type ProfileQuery = { __typename?: 'Query', me?: { __typename?: 'UsersPermissionsMe', id: string, username: string, profile?: { __typename?: 'UsersPermissionsUser', username: string, email: string, confirmed?: boolean | null, lastName?: string | null, firstName?: string | null, lang?: Enum_Userspermissionsuser_Lang | null, onboardingUser?: boolean | null, onboardingCreator?: boolean | null, provider?: string | null, events?: { __typename?: 'EventRelationResponseCollection', data: Array<{ __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, date?: any | null, address?: string | null } | null }> } | null } | null } | null }; export type UpdateMeMutationVariables = Exact<{ userUpdate: UsersPermissionsUserInput; }>; export type UpdateMeMutation = { __typename?: 'Mutation', updateMe: { __typename?: 'UsersPermissionsUserEntityResponse', data?: { __typename?: 'UsersPermissionsUserEntity', id?: string | null, attributes?: { __typename?: 'UsersPermissionsUser', username: string, email: string, confirmed?: boolean | null, lastName?: string | null, firstName?: string | null, lang?: Enum_Userspermissionsuser_Lang | null, onboardingUser?: boolean | null, onboardingCreator?: boolean | null, provider?: string | null, events?: { __typename?: 'EventRelationResponseCollection', data: Array<{ __typename?: 'EventEntity', id?: string | null, attributes?: { __typename?: 'Event', uuid?: string | null, name: string, date?: any | null, address?: string | null } | null }> } | null } | null } | null } }; export type VehicleFieldsFragment = { __typename?: 'VehicleEntity', id?: string | null, attributes?: { __typename?: 'Vehicle', name: string, seats?: number | null, phone_number?: string | null } | null }; export type FindUserVehiclesQueryVariables = Exact<{ [key: string]: never; }>; export type FindUserVehiclesQuery = { __typename?: 'Query', me?: { __typename?: 'UsersPermissionsMe', id: string, username: string, profile?: { __typename?: 'UsersPermissionsUser', vehicles?: { __typename?: 'VehicleRelationResponseCollection', data: Array<{ __typename?: 'VehicleEntity', id?: string | null, attributes?: { __typename?: 'Vehicle', name: string, seats?: number | null, phone_number?: string | null } | null }> } | null } | null } | null }; export type DeleteVehicleMutationVariables = Exact<{ id: Scalars['ID']; }>; export type DeleteVehicleMutation = { __typename?: 'Mutation', deleteVehicle?: { __typename?: 'VehicleEntityResponse', data?: { __typename?: 'VehicleEntity', id?: string | null, attributes?: { __typename?: 'Vehicle', name: string } | null } | null } | null }; export const MeFieldsFragmentDoc = gql` fragment MeFields on UsersPermissionsMe { id username email confirmed } `; export const EventFieldsFragmentDoc = gql` fragment EventFields on EventEntity { id attributes { uuid name description email date address latitude longitude position waitingPassengers { data { id attributes { name email location user { data { id attributes { firstName lastName } } } } } } travels(pagination: {limit: 100}) { data { id attributes { meeting meeting_latitude meeting_longitude departure details vehicleName phone_number seats passengers { data { id attributes { name location user { data { id attributes { firstName lastName } } } } } } } } } } } `; export const PassengerFieldsFragmentDoc = gql` fragment PassengerFields on PassengerEntity { id attributes { name location email user { data { id attributes { firstName lastName } } } } } `; export const TravelFieldsFragmentDoc = gql` fragment TravelFields on TravelEntity { id attributes { meeting meeting_latitude meeting_longitude departure details vehicleName phone_number seats passengers { data { id attributes { name location user { data { id attributes { firstName lastName } } } } } } } } `; export const UserFieldsFragmentDoc = gql` fragment UserFields on UsersPermissionsUser { username email confirmed lastName firstName lang onboardingUser onboardingCreator provider events(pagination: {limit: 100}) { data { id attributes { uuid name date address } } } } `; export const VehicleFieldsFragmentDoc = gql` fragment VehicleFields on VehicleEntity { id attributes { name seats phone_number } } `; export const RegisterDocument = gql` mutation register($user: UsersPermissionsRegisterInput!) { register(input: $user) { jwt user { ...MeFields } } } ${MeFieldsFragmentDoc}`; export type RegisterMutationFn = Apollo.MutationFunction; /** * __useRegisterMutation__ * * To run a mutation, you first call `useRegisterMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRegisterMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [registerMutation, { data, loading, error }] = useRegisterMutation({ * variables: { * user: // value for 'user' * }, * }); */ export function useRegisterMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RegisterDocument, options); } export type RegisterMutationHookResult = ReturnType; export type RegisterMutationResult = Apollo.MutationResult; export type RegisterMutationOptions = Apollo.BaseMutationOptions; export const ForgotPasswordDocument = gql` mutation forgotPassword($email: String!) { forgotPassword(email: $email) { ok } } `; export type ForgotPasswordMutationFn = Apollo.MutationFunction; /** * __useForgotPasswordMutation__ * * To run a mutation, you first call `useForgotPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useForgotPasswordMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [forgotPasswordMutation, { data, loading, error }] = useForgotPasswordMutation({ * variables: { * email: // value for 'email' * }, * }); */ export function useForgotPasswordMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ForgotPasswordDocument, options); } export type ForgotPasswordMutationHookResult = ReturnType; export type ForgotPasswordMutationResult = Apollo.MutationResult; export type ForgotPasswordMutationOptions = Apollo.BaseMutationOptions; export const ResetPasswordDocument = gql` mutation resetPassword($password: String!, $passwordConfirmation: String!, $code: String!) { resetPassword( password: $password passwordConfirmation: $passwordConfirmation code: $code ) { jwt user { ...MeFields } } } ${MeFieldsFragmentDoc}`; export type ResetPasswordMutationFn = Apollo.MutationFunction; /** * __useResetPasswordMutation__ * * To run a mutation, you first call `useResetPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useResetPasswordMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [resetPasswordMutation, { data, loading, error }] = useResetPasswordMutation({ * variables: { * password: // value for 'password' * passwordConfirmation: // value for 'passwordConfirmation' * code: // value for 'code' * }, * }); */ export function useResetPasswordMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ResetPasswordDocument, options); } export type ResetPasswordMutationHookResult = ReturnType; export type ResetPasswordMutationResult = Apollo.MutationResult; export type ResetPasswordMutationOptions = Apollo.BaseMutationOptions; export const CreateEventDocument = gql` mutation createEvent($name: String!, $email: String!, $date: Date, $address: String, $latitude: Float, $longitude: Float, $description: String, $newsletter: Boolean) { createEvent( data: {name: $name, email: $email, date: $date, latitude: $latitude, longitude: $longitude, address: $address, description: $description, newsletter: $newsletter} ) { data { ...EventFields } } } ${EventFieldsFragmentDoc}`; export type CreateEventMutationFn = Apollo.MutationFunction; /** * __useCreateEventMutation__ * * To run a mutation, you first call `useCreateEventMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateEventMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [createEventMutation, { data, loading, error }] = useCreateEventMutation({ * variables: { * name: // value for 'name' * email: // value for 'email' * date: // value for 'date' * address: // value for 'address' * latitude: // value for 'latitude' * longitude: // value for 'longitude' * description: // value for 'description' * newsletter: // value for 'newsletter' * }, * }); */ export function useCreateEventMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateEventDocument, options); } export type CreateEventMutationHookResult = ReturnType; export type CreateEventMutationResult = Apollo.MutationResult; export type CreateEventMutationOptions = Apollo.BaseMutationOptions; export const UpdateEventDocument = gql` mutation updateEvent($uuid: String!, $eventUpdate: EventInput!) { updateEventByUUID(uuid: $uuid, data: $eventUpdate) { data { ...EventFields } } } ${EventFieldsFragmentDoc}`; export type UpdateEventMutationFn = Apollo.MutationFunction; /** * __useUpdateEventMutation__ * * To run a mutation, you first call `useUpdateEventMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateEventMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateEventMutation, { data, loading, error }] = useUpdateEventMutation({ * variables: { * uuid: // value for 'uuid' * eventUpdate: // value for 'eventUpdate' * }, * }); */ export function useUpdateEventMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateEventDocument, options); } export type UpdateEventMutationHookResult = ReturnType; export type UpdateEventMutationResult = Apollo.MutationResult; export type UpdateEventMutationOptions = Apollo.BaseMutationOptions; export const EventByUuidDocument = gql` query eventByUUID($uuid: String!) { eventByUUID(uuid: $uuid) { data { ...EventFields } } } ${EventFieldsFragmentDoc}`; /** * __useEventByUuidQuery__ * * To run a query within a React component, call `useEventByUuidQuery` and pass it any options that fit your needs. * When your component renders, `useEventByUuidQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useEventByUuidQuery({ * variables: { * uuid: // value for 'uuid' * }, * }); */ export function useEventByUuidQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(EventByUuidDocument, options); } export function useEventByUuidLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(EventByUuidDocument, options); } export type EventByUuidQueryHookResult = ReturnType; export type EventByUuidLazyQueryHookResult = ReturnType; export type EventByUuidQueryResult = Apollo.QueryResult; export const CreatePassengerDocument = gql` mutation createPassenger($passenger: PassengerInput!) { createPassenger(data: $passenger) { data { ...PassengerFields } } } ${PassengerFieldsFragmentDoc}`; export type CreatePassengerMutationFn = Apollo.MutationFunction; /** * __useCreatePassengerMutation__ * * To run a mutation, you first call `useCreatePassengerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreatePassengerMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [createPassengerMutation, { data, loading, error }] = useCreatePassengerMutation({ * variables: { * passenger: // value for 'passenger' * }, * }); */ export function useCreatePassengerMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreatePassengerDocument, options); } export type CreatePassengerMutationHookResult = ReturnType; export type CreatePassengerMutationResult = Apollo.MutationResult; export type CreatePassengerMutationOptions = Apollo.BaseMutationOptions; export const UpdatePassengerDocument = gql` mutation updatePassenger($id: ID!, $passengerUpdate: PassengerInput!) { updatePassenger(id: $id, data: $passengerUpdate) { data { ...PassengerFields } } } ${PassengerFieldsFragmentDoc}`; export type UpdatePassengerMutationFn = Apollo.MutationFunction; /** * __useUpdatePassengerMutation__ * * To run a mutation, you first call `useUpdatePassengerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePassengerMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updatePassengerMutation, { data, loading, error }] = useUpdatePassengerMutation({ * variables: { * id: // value for 'id' * passengerUpdate: // value for 'passengerUpdate' * }, * }); */ export function useUpdatePassengerMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdatePassengerDocument, options); } export type UpdatePassengerMutationHookResult = ReturnType; export type UpdatePassengerMutationResult = Apollo.MutationResult; export type UpdatePassengerMutationOptions = Apollo.BaseMutationOptions; export const DeletePassengerDocument = gql` mutation deletePassenger($id: ID!) { deletePassenger(id: $id) { data { id } } } `; export type DeletePassengerMutationFn = Apollo.MutationFunction; /** * __useDeletePassengerMutation__ * * To run a mutation, you first call `useDeletePassengerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeletePassengerMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deletePassengerMutation, { data, loading, error }] = useDeletePassengerMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeletePassengerMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeletePassengerDocument, options); } export type DeletePassengerMutationHookResult = ReturnType; export type DeletePassengerMutationResult = Apollo.MutationResult; export type DeletePassengerMutationOptions = Apollo.BaseMutationOptions; export const SettingDocument = gql` query setting($locale: I18NLocaleCode!) { setting(locale: $locale) { data { id attributes { gtm_id about_link faq_link announcement matomo_script_url opencollective_link } } } } `; /** * __useSettingQuery__ * * To run a query within a React component, call `useSettingQuery` and pass it any options that fit your needs. * When your component renders, `useSettingQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useSettingQuery({ * variables: { * locale: // value for 'locale' * }, * }); */ export function useSettingQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SettingDocument, options); } export function useSettingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SettingDocument, options); } export type SettingQueryHookResult = ReturnType; export type SettingLazyQueryHookResult = ReturnType; export type SettingQueryResult = Apollo.QueryResult; export const CreateTravelDocument = gql` mutation createTravel($travel: TravelInput!, $createVehicle: Boolean) { createTravel(data: $travel, createVehicle: $createVehicle) { data { ...TravelFields } } } ${TravelFieldsFragmentDoc}`; export type CreateTravelMutationFn = Apollo.MutationFunction; /** * __useCreateTravelMutation__ * * To run a mutation, you first call `useCreateTravelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTravelMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [createTravelMutation, { data, loading, error }] = useCreateTravelMutation({ * variables: { * travel: // value for 'travel' * createVehicle: // value for 'createVehicle' * }, * }); */ export function useCreateTravelMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTravelDocument, options); } export type CreateTravelMutationHookResult = ReturnType; export type CreateTravelMutationResult = Apollo.MutationResult; export type CreateTravelMutationOptions = Apollo.BaseMutationOptions; export const UpdateTravelDocument = gql` mutation updateTravel($id: ID!, $travelUpdate: TravelInput!) { updateTravel(id: $id, data: $travelUpdate) { data { ...TravelFields } } } ${TravelFieldsFragmentDoc}`; export type UpdateTravelMutationFn = Apollo.MutationFunction; /** * __useUpdateTravelMutation__ * * To run a mutation, you first call `useUpdateTravelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTravelMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateTravelMutation, { data, loading, error }] = useUpdateTravelMutation({ * variables: { * id: // value for 'id' * travelUpdate: // value for 'travelUpdate' * }, * }); */ export function useUpdateTravelMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTravelDocument, options); } export type UpdateTravelMutationHookResult = ReturnType; export type UpdateTravelMutationResult = Apollo.MutationResult; export type UpdateTravelMutationOptions = Apollo.BaseMutationOptions; export const DeleteTravelDocument = gql` mutation deleteTravel($id: ID!) { deleteTravel(id: $id) { data { id } } } `; export type DeleteTravelMutationFn = Apollo.MutationFunction; /** * __useDeleteTravelMutation__ * * To run a mutation, you first call `useDeleteTravelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTravelMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deleteTravelMutation, { data, loading, error }] = useDeleteTravelMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeleteTravelMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTravelDocument, options); } export type DeleteTravelMutationHookResult = ReturnType; export type DeleteTravelMutationResult = Apollo.MutationResult; export type DeleteTravelMutationOptions = Apollo.BaseMutationOptions; export const ProfileDocument = gql` query profile { me { id username profile { ...UserFields } } } ${UserFieldsFragmentDoc}`; /** * __useProfileQuery__ * * To run a query within a React component, call `useProfileQuery` and pass it any options that fit your needs. * When your component renders, `useProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useProfileQuery({ * variables: { * }, * }); */ export function useProfileQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(ProfileDocument, options); } export function useProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(ProfileDocument, options); } export type ProfileQueryHookResult = ReturnType; export type ProfileLazyQueryHookResult = ReturnType; export type ProfileQueryResult = Apollo.QueryResult; export const UpdateMeDocument = gql` mutation updateMe($userUpdate: UsersPermissionsUserInput!) { updateMe(data: $userUpdate) { data { id attributes { ...UserFields } } } } ${UserFieldsFragmentDoc}`; export type UpdateMeMutationFn = Apollo.MutationFunction; /** * __useUpdateMeMutation__ * * To run a mutation, you first call `useUpdateMeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateMeMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateMeMutation, { data, loading, error }] = useUpdateMeMutation({ * variables: { * userUpdate: // value for 'userUpdate' * }, * }); */ export function useUpdateMeMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateMeDocument, options); } export type UpdateMeMutationHookResult = ReturnType; export type UpdateMeMutationResult = Apollo.MutationResult; export type UpdateMeMutationOptions = Apollo.BaseMutationOptions; export const FindUserVehiclesDocument = gql` query findUserVehicles { me { id username profile { vehicles(pagination: {limit: 100}) { data { ...VehicleFields } } } } } ${VehicleFieldsFragmentDoc}`; /** * __useFindUserVehiclesQuery__ * * To run a query within a React component, call `useFindUserVehiclesQuery` and pass it any options that fit your needs. * When your component renders, `useFindUserVehiclesQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useFindUserVehiclesQuery({ * variables: { * }, * }); */ export function useFindUserVehiclesQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindUserVehiclesDocument, options); } export function useFindUserVehiclesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindUserVehiclesDocument, options); } export type FindUserVehiclesQueryHookResult = ReturnType; export type FindUserVehiclesLazyQueryHookResult = ReturnType; export type FindUserVehiclesQueryResult = Apollo.QueryResult; export const DeleteVehicleDocument = gql` mutation deleteVehicle($id: ID!) { deleteVehicle(id: $id) { data { id attributes { name } } } } `; export type DeleteVehicleMutationFn = Apollo.MutationFunction; /** * __useDeleteVehicleMutation__ * * To run a mutation, you first call `useDeleteVehicleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteVehicleMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deleteVehicleMutation, { data, loading, error }] = useDeleteVehicleMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeleteVehicleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteVehicleDocument, options); } export type DeleteVehicleMutationHookResult = ReturnType; export type DeleteVehicleMutationResult = Apollo.MutationResult; export type DeleteVehicleMutationOptions = Apollo.BaseMutationOptions;