import gql from 'graphql-tag'; import * as ApolloReactCommon from '@apollo/react-common'; import * as ApolloReactHooks from '@apollo/react-hooks'; export type Maybe = T | null; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; Time: any; UUID: string; }; export type ProjectLabel = { __typename?: 'ProjectLabel'; id: Scalars['ID']; createdDate: Scalars['Time']; labelColor: LabelColor; name?: Maybe; }; export type LabelColor = { __typename?: 'LabelColor'; id: Scalars['ID']; name: Scalars['String']; position: Scalars['Float']; colorHex: Scalars['String']; }; export type TaskLabel = { __typename?: 'TaskLabel'; id: Scalars['ID']; projectLabel: ProjectLabel; assignedDate: Scalars['Time']; }; export type ProfileIcon = { __typename?: 'ProfileIcon'; url?: Maybe; initials?: Maybe; bgColor?: Maybe; }; export type ProjectMember = { __typename?: 'ProjectMember'; id: Scalars['ID']; firstName: Scalars['String']; lastName: Scalars['String']; profileIcon: ProfileIcon; }; export type RefreshToken = { __typename?: 'RefreshToken'; id: Scalars['ID']; userId: Scalars['UUID']; expiresAt: Scalars['Time']; createdAt: Scalars['Time']; }; export type UserAccount = { __typename?: 'UserAccount'; id: Scalars['ID']; email: Scalars['String']; createdAt: Scalars['Time']; firstName: Scalars['String']; lastName: Scalars['String']; username: Scalars['String']; profileIcon: ProfileIcon; }; export type Team = { __typename?: 'Team'; id: Scalars['ID']; createdAt: Scalars['Time']; name: Scalars['String']; }; export type Project = { __typename?: 'Project'; id: Scalars['ID']; createdAt: Scalars['Time']; name: Scalars['String']; team: Team; owner: ProjectMember; taskGroups: Array; members: Array; labels: Array; }; export type TaskGroup = { __typename?: 'TaskGroup'; id: Scalars['ID']; projectID: Scalars['String']; createdAt: Scalars['Time']; name: Scalars['String']; position: Scalars['Float']; tasks: Array; }; export type Task = { __typename?: 'Task'; id: Scalars['ID']; taskGroup: TaskGroup; createdAt: Scalars['Time']; name: Scalars['String']; position: Scalars['Float']; description?: Maybe; assigned: Array; labels: Array; }; export type ProjectsFilter = { teamID?: Maybe; }; export type FindUser = { userId: Scalars['String']; }; export type FindProject = { projectId: Scalars['String']; }; export type FindTask = { taskID: Scalars['UUID']; }; export type Query = { __typename?: 'Query'; users: Array; findUser: UserAccount; findProject: Project; findTask: Task; projects: Array; labelColors: Array; taskGroups: Array; me: UserAccount; }; export type QueryFindUserArgs = { input: FindUser; }; export type QueryFindProjectArgs = { input: FindProject; }; export type QueryFindTaskArgs = { input: FindTask; }; export type QueryProjectsArgs = { input?: Maybe; }; export type NewRefreshToken = { userId: Scalars['String']; }; export type NewUserAccount = { username: Scalars['String']; email: Scalars['String']; firstName: Scalars['String']; lastName: Scalars['String']; password: Scalars['String']; }; export type NewTeam = { name: Scalars['String']; organizationID: Scalars['String']; }; export type NewProject = { userID: Scalars['UUID']; teamID: Scalars['UUID']; name: Scalars['String']; }; export type NewTaskGroup = { projectID: Scalars['String']; name: Scalars['String']; position: Scalars['Float']; }; export type LogoutUser = { userID: Scalars['String']; }; export type NewTask = { taskGroupID: Scalars['String']; name: Scalars['String']; position: Scalars['Float']; }; export type NewTaskLocation = { taskID: Scalars['String']; taskGroupID: Scalars['String']; position: Scalars['Float']; }; export type DeleteTaskInput = { taskID: Scalars['String']; }; export type DeleteTaskPayload = { __typename?: 'DeleteTaskPayload'; taskID: Scalars['String']; }; export type UpdateTaskName = { taskID: Scalars['String']; name: Scalars['String']; }; export type NewTaskGroupLocation = { taskGroupID: Scalars['UUID']; position: Scalars['Float']; }; export type DeleteTaskGroupInput = { taskGroupID: Scalars['UUID']; }; export type DeleteTaskGroupPayload = { __typename?: 'DeleteTaskGroupPayload'; ok: Scalars['Boolean']; affectedRows: Scalars['Int']; taskGroup: TaskGroup; }; export type AssignTaskInput = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type UnassignTaskInput = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type UpdateTaskDescriptionInput = { taskID: Scalars['UUID']; description: Scalars['String']; }; export type AddTaskLabelInput = { taskID: Scalars['UUID']; projectLabelID: Scalars['UUID']; }; export type RemoveTaskLabelInput = { taskLabelID: Scalars['UUID']; }; export type NewProjectLabel = { projectID: Scalars['UUID']; labelColorID: Scalars['UUID']; name?: Maybe; }; export type DeleteProjectLabel = { projectLabelID: Scalars['UUID']; }; export type UpdateProjectLabelName = { projectLabelID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectLabel = { projectLabelID: Scalars['UUID']; labelColorID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectLabelColor = { projectLabelID: Scalars['UUID']; labelColorID: Scalars['UUID']; }; export type ToggleTaskLabelInput = { taskID: Scalars['UUID']; projectLabelID: Scalars['UUID']; }; export type ToggleTaskLabelPayload = { __typename?: 'ToggleTaskLabelPayload'; active: Scalars['Boolean']; task: Task; }; export type UpdateProjectName = { projectID: Scalars['UUID']; name: Scalars['String']; }; export type Mutation = { __typename?: 'Mutation'; createRefreshToken: RefreshToken; createUserAccount: UserAccount; createTeam: Team; createProject: Project; updateProjectName: Project; createProjectLabel: ProjectLabel; deleteProjectLabel: ProjectLabel; updateProjectLabel: ProjectLabel; updateProjectLabelName: ProjectLabel; updateProjectLabelColor: ProjectLabel; createTaskGroup: TaskGroup; updateTaskGroupLocation: TaskGroup; deleteTaskGroup: DeleteTaskGroupPayload; addTaskLabel: Task; removeTaskLabel: Task; toggleTaskLabel: ToggleTaskLabelPayload; createTask: Task; updateTaskDescription: Task; updateTaskLocation: Task; updateTaskName: Task; deleteTask: DeleteTaskPayload; assignTask: Task; unassignTask: Task; logoutUser: Scalars['Boolean']; }; export type MutationCreateRefreshTokenArgs = { input: NewRefreshToken; }; export type MutationCreateUserAccountArgs = { input: NewUserAccount; }; export type MutationCreateTeamArgs = { input: NewTeam; }; export type MutationCreateProjectArgs = { input: NewProject; }; export type MutationUpdateProjectNameArgs = { input?: Maybe; }; export type MutationCreateProjectLabelArgs = { input: NewProjectLabel; }; export type MutationDeleteProjectLabelArgs = { input: DeleteProjectLabel; }; export type MutationUpdateProjectLabelArgs = { input: UpdateProjectLabel; }; export type MutationUpdateProjectLabelNameArgs = { input: UpdateProjectLabelName; }; export type MutationUpdateProjectLabelColorArgs = { input: UpdateProjectLabelColor; }; export type MutationCreateTaskGroupArgs = { input: NewTaskGroup; }; export type MutationUpdateTaskGroupLocationArgs = { input: NewTaskGroupLocation; }; export type MutationDeleteTaskGroupArgs = { input: DeleteTaskGroupInput; }; export type MutationAddTaskLabelArgs = { input?: Maybe; }; export type MutationRemoveTaskLabelArgs = { input?: Maybe; }; export type MutationToggleTaskLabelArgs = { input: ToggleTaskLabelInput; }; export type MutationCreateTaskArgs = { input: NewTask; }; export type MutationUpdateTaskDescriptionArgs = { input: UpdateTaskDescriptionInput; }; export type MutationUpdateTaskLocationArgs = { input: NewTaskLocation; }; export type MutationUpdateTaskNameArgs = { input: UpdateTaskName; }; export type MutationDeleteTaskArgs = { input: DeleteTaskInput; }; export type MutationAssignTaskArgs = { input?: Maybe; }; export type MutationUnassignTaskArgs = { input?: Maybe; }; export type MutationLogoutUserArgs = { input: LogoutUser; }; export type AssignTaskMutationVariables = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type AssignTaskMutation = ( { __typename?: 'Mutation' } & { assignTask: ( { __typename?: 'Task' } & Pick & { assigned: Array<( { __typename?: 'ProjectMember' } & Pick )> } ) } ); export type CreateProjectLabelMutationVariables = { projectID: Scalars['UUID']; labelColorID: Scalars['UUID']; name: Scalars['String']; }; export type CreateProjectLabelMutation = ( { __typename?: 'Mutation' } & { createProjectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } ); export type CreateTaskMutationVariables = { taskGroupID: Scalars['String']; name: Scalars['String']; position: Scalars['Float']; }; export type CreateTaskMutation = ( { __typename?: 'Mutation' } & { createTask: ( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ), labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )>, assigned: Array<( { __typename?: 'ProjectMember' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )> } ) } ); export type CreateTaskGroupMutationVariables = { projectID: Scalars['String']; name: Scalars['String']; position: Scalars['Float']; }; export type CreateTaskGroupMutation = ( { __typename?: 'Mutation' } & { createTaskGroup: ( { __typename?: 'TaskGroup' } & Pick ) } ); export type DeleteProjectLabelMutationVariables = { projectLabelID: Scalars['UUID']; }; export type DeleteProjectLabelMutation = ( { __typename?: 'Mutation' } & { deleteProjectLabel: ( { __typename?: 'ProjectLabel' } & Pick ) } ); export type DeleteTaskMutationVariables = { taskID: Scalars['String']; }; export type DeleteTaskMutation = ( { __typename?: 'Mutation' } & { deleteTask: ( { __typename?: 'DeleteTaskPayload' } & Pick ) } ); export type DeleteTaskGroupMutationVariables = { taskGroupID: Scalars['UUID']; }; export type DeleteTaskGroupMutation = ( { __typename?: 'Mutation' } & { deleteTaskGroup: ( { __typename?: 'DeleteTaskGroupPayload' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick & { tasks: Array<( { __typename?: 'Task' } & Pick )> } ) } ) } ); export type FindProjectQueryVariables = { projectId: Scalars['String']; }; export type FindProjectQuery = ( { __typename?: 'Query' } & { findProject: ( { __typename?: 'Project' } & Pick & { members: Array<( { __typename?: 'ProjectMember' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )>, labels: Array<( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } )>, taskGroups: Array<( { __typename?: 'TaskGroup' } & Pick & { tasks: Array<( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ), labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )>, assigned: Array<( { __typename?: 'ProjectMember' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )> } )> } )> } ), labelColors: Array<( { __typename?: 'LabelColor' } & Pick )> } ); export type FindTaskQueryVariables = { taskID: Scalars['UUID']; }; export type FindTaskQuery = ( { __typename?: 'Query' } & { findTask: ( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ), labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )>, assigned: Array<( { __typename?: 'ProjectMember' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )> } ) } ); export type GetProjectsQueryVariables = {}; export type GetProjectsQuery = ( { __typename?: 'Query' } & { projects: Array<( { __typename?: 'Project' } & Pick & { team: ( { __typename?: 'Team' } & Pick ) } )> } ); export type MeQueryVariables = {}; export type MeQuery = ( { __typename?: 'Query' } & { me: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } ); export type ToggleTaskLabelMutationVariables = { taskID: Scalars['UUID']; projectLabelID: Scalars['UUID']; }; export type ToggleTaskLabelMutation = ( { __typename?: 'Mutation' } & { toggleTaskLabel: ( { __typename?: 'ToggleTaskLabelPayload' } & Pick & { task: ( { __typename?: 'Task' } & Pick & { labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )> } ) } ) } ); export type UnassignTaskMutationVariables = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type UnassignTaskMutation = ( { __typename?: 'Mutation' } & { unassignTask: ( { __typename?: 'Task' } & Pick & { assigned: Array<( { __typename?: 'ProjectMember' } & Pick )> } ) } ); export type UpdateProjectLabelMutationVariables = { projectLabelID: Scalars['UUID']; labelColorID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectLabelMutation = ( { __typename?: 'Mutation' } & { updateProjectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } ); export type UpdateProjectNameMutationVariables = { projectID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectNameMutation = ( { __typename?: 'Mutation' } & { updateProjectName: ( { __typename?: 'Project' } & Pick ) } ); export type UpdateTaskDescriptionMutationVariables = { taskID: Scalars['UUID']; description: Scalars['String']; }; export type UpdateTaskDescriptionMutation = ( { __typename?: 'Mutation' } & { updateTaskDescription: ( { __typename?: 'Task' } & Pick ) } ); export type UpdateTaskGroupLocationMutationVariables = { taskGroupID: Scalars['UUID']; position: Scalars['Float']; }; export type UpdateTaskGroupLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskGroupLocation: ( { __typename?: 'TaskGroup' } & Pick ) } ); export type UpdateTaskLocationMutationVariables = { taskID: Scalars['String']; taskGroupID: Scalars['String']; position: Scalars['Float']; }; export type UpdateTaskLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskLocation: ( { __typename?: 'Task' } & Pick ) } ); export type UpdateTaskNameMutationVariables = { taskID: Scalars['String']; name: Scalars['String']; }; export type UpdateTaskNameMutation = ( { __typename?: 'Mutation' } & { updateTaskName: ( { __typename?: 'Task' } & Pick ) } ); export const AssignTaskDocument = gql` mutation assignTask($taskID: UUID!, $userID: UUID!) { assignTask(input: {taskID: $taskID, userID: $userID}) { id assigned { id firstName lastName } } } `; export type AssignTaskMutationFn = ApolloReactCommon.MutationFunction; /** * __useAssignTaskMutation__ * * To run a mutation, you first call `useAssignTaskMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAssignTaskMutation` 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 [assignTaskMutation, { data, loading, error }] = useAssignTaskMutation({ * variables: { * taskID: // value for 'taskID' * userID: // value for 'userID' * }, * }); */ export function useAssignTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(AssignTaskDocument, baseOptions); } export type AssignTaskMutationHookResult = ReturnType; export type AssignTaskMutationResult = ApolloReactCommon.MutationResult; export type AssignTaskMutationOptions = ApolloReactCommon.BaseMutationOptions; export const CreateProjectLabelDocument = gql` mutation createProjectLabel($projectID: UUID!, $labelColorID: UUID!, $name: String!) { createProjectLabel(input: {projectID: $projectID, labelColorID: $labelColorID, name: $name}) { id createdDate labelColor { id colorHex name position } name } } `; export type CreateProjectLabelMutationFn = ApolloReactCommon.MutationFunction; /** * __useCreateProjectLabelMutation__ * * To run a mutation, you first call `useCreateProjectLabelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateProjectLabelMutation` 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 [createProjectLabelMutation, { data, loading, error }] = useCreateProjectLabelMutation({ * variables: { * projectID: // value for 'projectID' * labelColorID: // value for 'labelColorID' * name: // value for 'name' * }, * }); */ export function useCreateProjectLabelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(CreateProjectLabelDocument, baseOptions); } export type CreateProjectLabelMutationHookResult = ReturnType; export type CreateProjectLabelMutationResult = ApolloReactCommon.MutationResult; export type CreateProjectLabelMutationOptions = ApolloReactCommon.BaseMutationOptions; export const CreateTaskDocument = gql` mutation createTask($taskGroupID: String!, $name: String!, $position: Float!) { createTask(input: {taskGroupID: $taskGroupID, name: $name, position: $position}) { id name position description taskGroup { id name position } labels { id assignedDate projectLabel { id name createdDate labelColor { id colorHex position name } } } assigned { id firstName lastName profileIcon { url initials bgColor } } } } `; export type CreateTaskMutationFn = ApolloReactCommon.MutationFunction; /** * __useCreateTaskMutation__ * * To run a mutation, you first call `useCreateTaskMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTaskMutation` 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 [createTaskMutation, { data, loading, error }] = useCreateTaskMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * name: // value for 'name' * position: // value for 'position' * }, * }); */ export function useCreateTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(CreateTaskDocument, baseOptions); } export type CreateTaskMutationHookResult = ReturnType; export type CreateTaskMutationResult = ApolloReactCommon.MutationResult; export type CreateTaskMutationOptions = ApolloReactCommon.BaseMutationOptions; export const CreateTaskGroupDocument = gql` mutation createTaskGroup($projectID: String!, $name: String!, $position: Float!) { createTaskGroup(input: {projectID: $projectID, name: $name, position: $position}) { id name position } } `; export type CreateTaskGroupMutationFn = ApolloReactCommon.MutationFunction; /** * __useCreateTaskGroupMutation__ * * To run a mutation, you first call `useCreateTaskGroupMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTaskGroupMutation` 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 [createTaskGroupMutation, { data, loading, error }] = useCreateTaskGroupMutation({ * variables: { * projectID: // value for 'projectID' * name: // value for 'name' * position: // value for 'position' * }, * }); */ export function useCreateTaskGroupMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(CreateTaskGroupDocument, baseOptions); } export type CreateTaskGroupMutationHookResult = ReturnType; export type CreateTaskGroupMutationResult = ApolloReactCommon.MutationResult; export type CreateTaskGroupMutationOptions = ApolloReactCommon.BaseMutationOptions; export const DeleteProjectLabelDocument = gql` mutation deleteProjectLabel($projectLabelID: UUID!) { deleteProjectLabel(input: {projectLabelID: $projectLabelID}) { id } } `; export type DeleteProjectLabelMutationFn = ApolloReactCommon.MutationFunction; /** * __useDeleteProjectLabelMutation__ * * To run a mutation, you first call `useDeleteProjectLabelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteProjectLabelMutation` 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 [deleteProjectLabelMutation, { data, loading, error }] = useDeleteProjectLabelMutation({ * variables: { * projectLabelID: // value for 'projectLabelID' * }, * }); */ export function useDeleteProjectLabelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(DeleteProjectLabelDocument, baseOptions); } export type DeleteProjectLabelMutationHookResult = ReturnType; export type DeleteProjectLabelMutationResult = ApolloReactCommon.MutationResult; export type DeleteProjectLabelMutationOptions = ApolloReactCommon.BaseMutationOptions; export const DeleteTaskDocument = gql` mutation deleteTask($taskID: String!) { deleteTask(input: {taskID: $taskID}) { taskID } } `; export type DeleteTaskMutationFn = ApolloReactCommon.MutationFunction; /** * __useDeleteTaskMutation__ * * To run a mutation, you first call `useDeleteTaskMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskMutation` 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 [deleteTaskMutation, { data, loading, error }] = useDeleteTaskMutation({ * variables: { * taskID: // value for 'taskID' * }, * }); */ export function useDeleteTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(DeleteTaskDocument, baseOptions); } export type DeleteTaskMutationHookResult = ReturnType; export type DeleteTaskMutationResult = ApolloReactCommon.MutationResult; export type DeleteTaskMutationOptions = ApolloReactCommon.BaseMutationOptions; export const DeleteTaskGroupDocument = gql` mutation deleteTaskGroup($taskGroupID: UUID!) { deleteTaskGroup(input: {taskGroupID: $taskGroupID}) { ok affectedRows taskGroup { id tasks { id name } } } } `; export type DeleteTaskGroupMutationFn = ApolloReactCommon.MutationFunction; /** * __useDeleteTaskGroupMutation__ * * To run a mutation, you first call `useDeleteTaskGroupMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskGroupMutation` 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 [deleteTaskGroupMutation, { data, loading, error }] = useDeleteTaskGroupMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * }, * }); */ export function useDeleteTaskGroupMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(DeleteTaskGroupDocument, baseOptions); } export type DeleteTaskGroupMutationHookResult = ReturnType; export type DeleteTaskGroupMutationResult = ApolloReactCommon.MutationResult; export type DeleteTaskGroupMutationOptions = ApolloReactCommon.BaseMutationOptions; export const FindProjectDocument = gql` query findProject($projectId: String!) { findProject(input: {projectId: $projectId}) { name members { id firstName lastName profileIcon { url initials bgColor } } labels { id createdDate name labelColor { id name colorHex position } } taskGroups { id name position tasks { id name position description taskGroup { id name position } labels { id assignedDate projectLabel { id name createdDate labelColor { id colorHex position name } } } assigned { id firstName lastName profileIcon { url initials bgColor } } } } } labelColors { id position colorHex name } } `; /** * __useFindProjectQuery__ * * To run a query within a React component, call `useFindProjectQuery` and pass it any options that fit your needs. * When your component renders, `useFindProjectQuery` 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 } = useFindProjectQuery({ * variables: { * projectId: // value for 'projectId' * }, * }); */ export function useFindProjectQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { return ApolloReactHooks.useQuery(FindProjectDocument, baseOptions); } export function useFindProjectLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { return ApolloReactHooks.useLazyQuery(FindProjectDocument, baseOptions); } export type FindProjectQueryHookResult = ReturnType; export type FindProjectLazyQueryHookResult = ReturnType; export type FindProjectQueryResult = ApolloReactCommon.QueryResult; export const FindTaskDocument = gql` query findTask($taskID: UUID!) { findTask(input: {taskID: $taskID}) { id name description position taskGroup { id } labels { id assignedDate projectLabel { id name createdDate labelColor { id colorHex position name } } } assigned { id firstName lastName profileIcon { url initials bgColor } } } } `; /** * __useFindTaskQuery__ * * To run a query within a React component, call `useFindTaskQuery` and pass it any options that fit your needs. * When your component renders, `useFindTaskQuery` 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 } = useFindTaskQuery({ * variables: { * taskID: // value for 'taskID' * }, * }); */ export function useFindTaskQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { return ApolloReactHooks.useQuery(FindTaskDocument, baseOptions); } export function useFindTaskLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { return ApolloReactHooks.useLazyQuery(FindTaskDocument, baseOptions); } export type FindTaskQueryHookResult = ReturnType; export type FindTaskLazyQueryHookResult = ReturnType; export type FindTaskQueryResult = ApolloReactCommon.QueryResult; export const GetProjectsDocument = gql` query getProjects { projects { id name team { id name } } } `; /** * __useGetProjectsQuery__ * * To run a query within a React component, call `useGetProjectsQuery` and pass it any options that fit your needs. * When your component renders, `useGetProjectsQuery` 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 } = useGetProjectsQuery({ * variables: { * }, * }); */ export function useGetProjectsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { return ApolloReactHooks.useQuery(GetProjectsDocument, baseOptions); } export function useGetProjectsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { return ApolloReactHooks.useLazyQuery(GetProjectsDocument, baseOptions); } export type GetProjectsQueryHookResult = ReturnType; export type GetProjectsLazyQueryHookResult = ReturnType; export type GetProjectsQueryResult = ApolloReactCommon.QueryResult; export const MeDocument = gql` query me { me { firstName lastName profileIcon { initials bgColor } } } `; /** * __useMeQuery__ * * To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs. * When your component renders, `useMeQuery` 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 } = useMeQuery({ * variables: { * }, * }); */ export function useMeQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { return ApolloReactHooks.useQuery(MeDocument, baseOptions); } export function useMeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { return ApolloReactHooks.useLazyQuery(MeDocument, baseOptions); } export type MeQueryHookResult = ReturnType; export type MeLazyQueryHookResult = ReturnType; export type MeQueryResult = ApolloReactCommon.QueryResult; export const ToggleTaskLabelDocument = gql` mutation toggleTaskLabel($taskID: UUID!, $projectLabelID: UUID!) { toggleTaskLabel(input: {taskID: $taskID, projectLabelID: $projectLabelID}) { active task { id labels { id assignedDate projectLabel { id createdDate labelColor { id colorHex name position } name } } } } } `; export type ToggleTaskLabelMutationFn = ApolloReactCommon.MutationFunction; /** * __useToggleTaskLabelMutation__ * * To run a mutation, you first call `useToggleTaskLabelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useToggleTaskLabelMutation` 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 [toggleTaskLabelMutation, { data, loading, error }] = useToggleTaskLabelMutation({ * variables: { * taskID: // value for 'taskID' * projectLabelID: // value for 'projectLabelID' * }, * }); */ export function useToggleTaskLabelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(ToggleTaskLabelDocument, baseOptions); } export type ToggleTaskLabelMutationHookResult = ReturnType; export type ToggleTaskLabelMutationResult = ApolloReactCommon.MutationResult; export type ToggleTaskLabelMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UnassignTaskDocument = gql` mutation unassignTask($taskID: UUID!, $userID: UUID!) { unassignTask(input: {taskID: $taskID, userID: $userID}) { assigned { id firstName lastName } id } } `; export type UnassignTaskMutationFn = ApolloReactCommon.MutationFunction; /** * __useUnassignTaskMutation__ * * To run a mutation, you first call `useUnassignTaskMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnassignTaskMutation` 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 [unassignTaskMutation, { data, loading, error }] = useUnassignTaskMutation({ * variables: { * taskID: // value for 'taskID' * userID: // value for 'userID' * }, * }); */ export function useUnassignTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UnassignTaskDocument, baseOptions); } export type UnassignTaskMutationHookResult = ReturnType; export type UnassignTaskMutationResult = ApolloReactCommon.MutationResult; export type UnassignTaskMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateProjectLabelDocument = gql` mutation updateProjectLabel($projectLabelID: UUID!, $labelColorID: UUID!, $name: String!) { updateProjectLabel(input: {projectLabelID: $projectLabelID, labelColorID: $labelColorID, name: $name}) { id createdDate labelColor { id colorHex name position } name } } `; export type UpdateProjectLabelMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateProjectLabelMutation__ * * To run a mutation, you first call `useUpdateProjectLabelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateProjectLabelMutation` 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 [updateProjectLabelMutation, { data, loading, error }] = useUpdateProjectLabelMutation({ * variables: { * projectLabelID: // value for 'projectLabelID' * labelColorID: // value for 'labelColorID' * name: // value for 'name' * }, * }); */ export function useUpdateProjectLabelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateProjectLabelDocument, baseOptions); } export type UpdateProjectLabelMutationHookResult = ReturnType; export type UpdateProjectLabelMutationResult = ApolloReactCommon.MutationResult; export type UpdateProjectLabelMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateProjectNameDocument = gql` mutation updateProjectName($projectID: UUID!, $name: String!) { updateProjectName(input: {projectID: $projectID, name: $name}) { id name } } `; export type UpdateProjectNameMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateProjectNameMutation__ * * To run a mutation, you first call `useUpdateProjectNameMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateProjectNameMutation` 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 [updateProjectNameMutation, { data, loading, error }] = useUpdateProjectNameMutation({ * variables: { * projectID: // value for 'projectID' * name: // value for 'name' * }, * }); */ export function useUpdateProjectNameMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateProjectNameDocument, baseOptions); } export type UpdateProjectNameMutationHookResult = ReturnType; export type UpdateProjectNameMutationResult = ApolloReactCommon.MutationResult; export type UpdateProjectNameMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateTaskDescriptionDocument = gql` mutation updateTaskDescription($taskID: UUID!, $description: String!) { updateTaskDescription(input: {taskID: $taskID, description: $description}) { id } } `; export type UpdateTaskDescriptionMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateTaskDescriptionMutation__ * * To run a mutation, you first call `useUpdateTaskDescriptionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskDescriptionMutation` 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 [updateTaskDescriptionMutation, { data, loading, error }] = useUpdateTaskDescriptionMutation({ * variables: { * taskID: // value for 'taskID' * description: // value for 'description' * }, * }); */ export function useUpdateTaskDescriptionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateTaskDescriptionDocument, baseOptions); } export type UpdateTaskDescriptionMutationHookResult = ReturnType; export type UpdateTaskDescriptionMutationResult = ApolloReactCommon.MutationResult; export type UpdateTaskDescriptionMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateTaskGroupLocationDocument = gql` mutation updateTaskGroupLocation($taskGroupID: UUID!, $position: Float!) { updateTaskGroupLocation(input: {taskGroupID: $taskGroupID, position: $position}) { id position } } `; export type UpdateTaskGroupLocationMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateTaskGroupLocationMutation__ * * To run a mutation, you first call `useUpdateTaskGroupLocationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskGroupLocationMutation` 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 [updateTaskGroupLocationMutation, { data, loading, error }] = useUpdateTaskGroupLocationMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * position: // value for 'position' * }, * }); */ export function useUpdateTaskGroupLocationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateTaskGroupLocationDocument, baseOptions); } export type UpdateTaskGroupLocationMutationHookResult = ReturnType; export type UpdateTaskGroupLocationMutationResult = ApolloReactCommon.MutationResult; export type UpdateTaskGroupLocationMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateTaskLocationDocument = gql` mutation updateTaskLocation($taskID: String!, $taskGroupID: String!, $position: Float!) { updateTaskLocation(input: {taskID: $taskID, taskGroupID: $taskGroupID, position: $position}) { id createdAt name position } } `; export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateTaskLocationMutation__ * * To run a mutation, you first call `useUpdateTaskLocationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskLocationMutation` 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 [updateTaskLocationMutation, { data, loading, error }] = useUpdateTaskLocationMutation({ * variables: { * taskID: // value for 'taskID' * taskGroupID: // value for 'taskGroupID' * position: // value for 'position' * }, * }); */ export function useUpdateTaskLocationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateTaskLocationDocument, baseOptions); } export type UpdateTaskLocationMutationHookResult = ReturnType; export type UpdateTaskLocationMutationResult = ApolloReactCommon.MutationResult; export type UpdateTaskLocationMutationOptions = ApolloReactCommon.BaseMutationOptions; export const UpdateTaskNameDocument = gql` mutation updateTaskName($taskID: String!, $name: String!) { updateTaskName(input: {taskID: $taskID, name: $name}) { id name position } } `; export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction; /** * __useUpdateTaskNameMutation__ * * To run a mutation, you first call `useUpdateTaskNameMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskNameMutation` 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 [updateTaskNameMutation, { data, loading, error }] = useUpdateTaskNameMutation({ * variables: { * taskID: // value for 'taskID' * name: // value for 'name' * }, * }); */ export function useUpdateTaskNameMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { return ApolloReactHooks.useMutation(UpdateTaskNameDocument, baseOptions); } export type UpdateTaskNameMutationHookResult = ReturnType; export type UpdateTaskNameMutationResult = ApolloReactCommon.MutationResult; export type UpdateTaskNameMutationOptions = ApolloReactCommon.BaseMutationOptions;