import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; 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 = {} /** 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; Upload: any; }; export enum ActionLevel { Org = 'ORG', Team = 'TEAM', Project = 'PROJECT' } export enum ActionType { TeamAdded = 'TEAM_ADDED', TeamRemoved = 'TEAM_REMOVED', ProjectAdded = 'PROJECT_ADDED', ProjectRemoved = 'PROJECT_REMOVED', ProjectArchived = 'PROJECT_ARCHIVED', DueDateAdded = 'DUE_DATE_ADDED', DueDateRemoved = 'DUE_DATE_REMOVED', DueDateChanged = 'DUE_DATE_CHANGED', TaskAssigned = 'TASK_ASSIGNED', TaskMoved = 'TASK_MOVED', TaskArchived = 'TASK_ARCHIVED', TaskAttachmentUploaded = 'TASK_ATTACHMENT_UPLOADED', CommentMentioned = 'COMMENT_MENTIONED', CommentOther = 'COMMENT_OTHER' } export enum ActivityType { TaskAdded = 'TASK_ADDED', TaskMoved = 'TASK_MOVED', TaskMarkedComplete = 'TASK_MARKED_COMPLETE', TaskMarkedIncomplete = 'TASK_MARKED_INCOMPLETE', TaskDueDateChanged = 'TASK_DUE_DATE_CHANGED', TaskDueDateAdded = 'TASK_DUE_DATE_ADDED', TaskDueDateRemoved = 'TASK_DUE_DATE_REMOVED', TaskChecklistChanged = 'TASK_CHECKLIST_CHANGED', TaskChecklistAdded = 'TASK_CHECKLIST_ADDED', TaskChecklistRemoved = 'TASK_CHECKLIST_REMOVED' } export type AddTaskLabelInput = { taskID: Scalars['UUID']; projectLabelID: Scalars['UUID']; }; export type AssignTaskInput = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type CausedBy = { __typename?: 'CausedBy'; id: Scalars['ID']; fullName: Scalars['String']; profileIcon?: Maybe; }; export type ChecklistBadge = { __typename?: 'ChecklistBadge'; complete: Scalars['Int']; total: Scalars['Int']; }; export type CommentsBadge = { __typename?: 'CommentsBadge'; total: Scalars['Int']; unread: Scalars['Boolean']; }; export type CreateTaskChecklist = { taskID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }; export type CreateTaskChecklistItem = { taskChecklistID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }; export type CreateTaskComment = { taskID: Scalars['UUID']; message: Scalars['String']; }; export type CreateTaskCommentPayload = { __typename?: 'CreateTaskCommentPayload'; taskID: Scalars['UUID']; comment: TaskComment; }; export type CreateTeamMember = { userID: Scalars['UUID']; teamID: Scalars['UUID']; }; export type CreateTeamMemberPayload = { __typename?: 'CreateTeamMemberPayload'; team: Team; teamMember: Member; }; export type CreatedBy = { __typename?: 'CreatedBy'; id: Scalars['ID']; fullName: Scalars['String']; profileIcon: ProfileIcon; }; export type DeleteInvitedProjectMember = { projectID: Scalars['UUID']; email: Scalars['String']; }; export type DeleteInvitedProjectMemberPayload = { __typename?: 'DeleteInvitedProjectMemberPayload'; invitedMember: InvitedMember; }; export type DeleteInvitedUserAccount = { invitedUserID: Scalars['UUID']; }; export type DeleteInvitedUserAccountPayload = { __typename?: 'DeleteInvitedUserAccountPayload'; invitedUser: InvitedUserAccount; }; export type DeleteProject = { projectID: Scalars['UUID']; }; export type DeleteProjectLabel = { projectLabelID: Scalars['UUID']; }; export type DeleteProjectMember = { projectID: Scalars['UUID']; userID: Scalars['UUID']; }; export type DeleteProjectMemberPayload = { __typename?: 'DeleteProjectMemberPayload'; ok: Scalars['Boolean']; member: Member; projectID: Scalars['UUID']; }; export type DeleteProjectPayload = { __typename?: 'DeleteProjectPayload'; ok: Scalars['Boolean']; project: Project; }; export type DeleteTaskChecklist = { taskChecklistID: Scalars['UUID']; }; export type DeleteTaskChecklistItem = { taskChecklistItemID: Scalars['UUID']; }; export type DeleteTaskChecklistItemPayload = { __typename?: 'DeleteTaskChecklistItemPayload'; ok: Scalars['Boolean']; taskChecklistItem: TaskChecklistItem; }; export type DeleteTaskChecklistPayload = { __typename?: 'DeleteTaskChecklistPayload'; ok: Scalars['Boolean']; taskChecklist: TaskChecklist; }; export type DeleteTaskComment = { commentID: Scalars['UUID']; }; export type DeleteTaskCommentPayload = { __typename?: 'DeleteTaskCommentPayload'; taskID: Scalars['UUID']; commentID: Scalars['UUID']; }; export type DeleteTaskGroupInput = { taskGroupID: Scalars['UUID']; }; export type DeleteTaskGroupPayload = { __typename?: 'DeleteTaskGroupPayload'; ok: Scalars['Boolean']; affectedRows: Scalars['Int']; taskGroup: TaskGroup; }; export type DeleteTaskGroupTasks = { taskGroupID: Scalars['UUID']; }; export type DeleteTaskGroupTasksPayload = { __typename?: 'DeleteTaskGroupTasksPayload'; taskGroupID: Scalars['UUID']; tasks: Array; }; export type DeleteTaskInput = { taskID: Scalars['UUID']; }; export type DeleteTaskPayload = { __typename?: 'DeleteTaskPayload'; taskID: Scalars['UUID']; }; export type DeleteTeam = { teamID: Scalars['UUID']; }; export type DeleteTeamMember = { teamID: Scalars['UUID']; userID: Scalars['UUID']; newOwnerID?: Maybe; }; export type DeleteTeamMemberPayload = { __typename?: 'DeleteTeamMemberPayload'; teamID: Scalars['UUID']; userID: Scalars['UUID']; affectedProjects: Array; }; export type DeleteTeamPayload = { __typename?: 'DeleteTeamPayload'; ok: Scalars['Boolean']; team: Team; projects: Array; }; export type DeleteUserAccount = { userID: Scalars['UUID']; newOwnerID?: Maybe; }; export type DeleteUserAccountPayload = { __typename?: 'DeleteUserAccountPayload'; ok: Scalars['Boolean']; userAccount: UserAccount; }; export type DuplicateTaskGroup = { projectID: Scalars['UUID']; taskGroupID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }; export type DuplicateTaskGroupPayload = { __typename?: 'DuplicateTaskGroupPayload'; taskGroup: TaskGroup; }; export type FindProject = { projectID: Scalars['UUID']; }; export type FindTask = { taskID: Scalars['UUID']; }; export type FindTeam = { teamID: Scalars['UUID']; }; export type FindUser = { userID: Scalars['UUID']; }; export type HasUnreadNotificationsResult = { __typename?: 'HasUnreadNotificationsResult'; unread: Scalars['Boolean']; }; export type InviteProjectMembers = { projectID: Scalars['UUID']; members: Array; }; export type InviteProjectMembersPayload = { __typename?: 'InviteProjectMembersPayload'; ok: Scalars['Boolean']; projectID: Scalars['UUID']; members: Array; invitedMembers: Array; }; export type InvitedMember = { __typename?: 'InvitedMember'; email: Scalars['String']; invitedOn: Scalars['Time']; }; export type InvitedUserAccount = { __typename?: 'InvitedUserAccount'; id: Scalars['ID']; email: Scalars['String']; invitedOn: Scalars['Time']; member: MemberList; }; export type LabelColor = { __typename?: 'LabelColor'; id: Scalars['ID']; name: Scalars['String']; position: Scalars['Float']; colorHex: Scalars['String']; }; export type LogoutUser = { userID: Scalars['UUID']; }; export type MePayload = { __typename?: 'MePayload'; user: UserAccount; organization?: Maybe; teamRoles: Array; projectRoles: Array; }; export type Member = { __typename?: 'Member'; id: Scalars['ID']; role: Role; fullName: Scalars['String']; username: Scalars['String']; profileIcon: ProfileIcon; owned: OwnedList; member: MemberList; }; export type MemberInvite = { userID?: Maybe; email?: Maybe; }; export type MemberList = { __typename?: 'MemberList'; teams: Array; projects: Array; }; export type MemberSearchFilter = { searchFilter: Scalars['String']; projectID?: Maybe; }; export type MemberSearchResult = { __typename?: 'MemberSearchResult'; similarity: Scalars['Int']; id: Scalars['String']; user?: Maybe; status: ShareStatus; }; export type Mutation = { __typename?: 'Mutation'; addTaskLabel: Task; assignTask: Task; clearProfileAvatar: UserAccount; createProject: Project; createProjectLabel: ProjectLabel; createTask: Task; createTaskChecklist: TaskChecklist; createTaskChecklistItem: TaskChecklistItem; createTaskComment: CreateTaskCommentPayload; createTaskGroup: TaskGroup; createTeam: Team; createTeamMember: CreateTeamMemberPayload; createUserAccount: UserAccount; deleteInvitedProjectMember: DeleteInvitedProjectMemberPayload; deleteInvitedUserAccount: DeleteInvitedUserAccountPayload; deleteProject: DeleteProjectPayload; deleteProjectLabel: ProjectLabel; deleteProjectMember: DeleteProjectMemberPayload; deleteTask: DeleteTaskPayload; deleteTaskChecklist: DeleteTaskChecklistPayload; deleteTaskChecklistItem: DeleteTaskChecklistItemPayload; deleteTaskComment: DeleteTaskCommentPayload; deleteTaskGroup: DeleteTaskGroupPayload; deleteTaskGroupTasks: DeleteTaskGroupTasksPayload; deleteTeam: DeleteTeamPayload; deleteTeamMember: DeleteTeamMemberPayload; deleteUserAccount: DeleteUserAccountPayload; duplicateTaskGroup: DuplicateTaskGroupPayload; inviteProjectMembers: InviteProjectMembersPayload; logoutUser: Scalars['Boolean']; notificationToggleRead: Notified; removeTaskLabel: Task; setTaskChecklistItemComplete: TaskChecklistItem; setTaskComplete: Task; sortTaskGroup: SortTaskGroupPayload; toggleProjectVisibility: ToggleProjectVisibilityPayload; toggleTaskLabel: ToggleTaskLabelPayload; toggleTaskWatch: Task; unassignTask: Task; updateProjectLabel: ProjectLabel; updateProjectLabelColor: ProjectLabel; updateProjectLabelName: ProjectLabel; updateProjectMemberRole: UpdateProjectMemberRolePayload; updateProjectName: Project; updateTaskChecklistItemLocation: UpdateTaskChecklistItemLocationPayload; updateTaskChecklistItemName: TaskChecklistItem; updateTaskChecklistLocation: UpdateTaskChecklistLocationPayload; updateTaskChecklistName: TaskChecklist; updateTaskComment: UpdateTaskCommentPayload; updateTaskDescription: Task; updateTaskDueDate: Task; updateTaskGroupLocation: TaskGroup; updateTaskGroupName: TaskGroup; updateTaskLocation: UpdateTaskLocationPayload; updateTaskName: Task; updateTeamMemberRole: UpdateTeamMemberRolePayload; updateUserInfo: UpdateUserInfoPayload; updateUserPassword: UpdateUserPasswordPayload; updateUserRole: UpdateUserRolePayload; }; export type MutationAddTaskLabelArgs = { input?: Maybe; }; export type MutationAssignTaskArgs = { input?: Maybe; }; export type MutationCreateProjectArgs = { input: NewProject; }; export type MutationCreateProjectLabelArgs = { input: NewProjectLabel; }; export type MutationCreateTaskArgs = { input: NewTask; }; export type MutationCreateTaskChecklistArgs = { input: CreateTaskChecklist; }; export type MutationCreateTaskChecklistItemArgs = { input: CreateTaskChecklistItem; }; export type MutationCreateTaskCommentArgs = { input?: Maybe; }; export type MutationCreateTaskGroupArgs = { input: NewTaskGroup; }; export type MutationCreateTeamArgs = { input: NewTeam; }; export type MutationCreateTeamMemberArgs = { input: CreateTeamMember; }; export type MutationCreateUserAccountArgs = { input: NewUserAccount; }; export type MutationDeleteInvitedProjectMemberArgs = { input: DeleteInvitedProjectMember; }; export type MutationDeleteInvitedUserAccountArgs = { input: DeleteInvitedUserAccount; }; export type MutationDeleteProjectArgs = { input: DeleteProject; }; export type MutationDeleteProjectLabelArgs = { input: DeleteProjectLabel; }; export type MutationDeleteProjectMemberArgs = { input: DeleteProjectMember; }; export type MutationDeleteTaskArgs = { input: DeleteTaskInput; }; export type MutationDeleteTaskChecklistArgs = { input: DeleteTaskChecklist; }; export type MutationDeleteTaskChecklistItemArgs = { input: DeleteTaskChecklistItem; }; export type MutationDeleteTaskCommentArgs = { input?: Maybe; }; export type MutationDeleteTaskGroupArgs = { input: DeleteTaskGroupInput; }; export type MutationDeleteTaskGroupTasksArgs = { input: DeleteTaskGroupTasks; }; export type MutationDeleteTeamArgs = { input: DeleteTeam; }; export type MutationDeleteTeamMemberArgs = { input: DeleteTeamMember; }; export type MutationDeleteUserAccountArgs = { input: DeleteUserAccount; }; export type MutationDuplicateTaskGroupArgs = { input: DuplicateTaskGroup; }; export type MutationInviteProjectMembersArgs = { input: InviteProjectMembers; }; export type MutationLogoutUserArgs = { input: LogoutUser; }; export type MutationNotificationToggleReadArgs = { input: NotificationToggleReadInput; }; export type MutationRemoveTaskLabelArgs = { input?: Maybe; }; export type MutationSetTaskChecklistItemCompleteArgs = { input: SetTaskChecklistItemComplete; }; export type MutationSetTaskCompleteArgs = { input: SetTaskComplete; }; export type MutationSortTaskGroupArgs = { input: SortTaskGroup; }; export type MutationToggleProjectVisibilityArgs = { input: ToggleProjectVisibility; }; export type MutationToggleTaskLabelArgs = { input: ToggleTaskLabelInput; }; export type MutationToggleTaskWatchArgs = { input: ToggleTaskWatch; }; export type MutationUnassignTaskArgs = { input?: Maybe; }; export type MutationUpdateProjectLabelArgs = { input: UpdateProjectLabel; }; export type MutationUpdateProjectLabelColorArgs = { input: UpdateProjectLabelColor; }; export type MutationUpdateProjectLabelNameArgs = { input: UpdateProjectLabelName; }; export type MutationUpdateProjectMemberRoleArgs = { input: UpdateProjectMemberRole; }; export type MutationUpdateProjectNameArgs = { input?: Maybe; }; export type MutationUpdateTaskChecklistItemLocationArgs = { input: UpdateTaskChecklistItemLocation; }; export type MutationUpdateTaskChecklistItemNameArgs = { input: UpdateTaskChecklistItemName; }; export type MutationUpdateTaskChecklistLocationArgs = { input: UpdateTaskChecklistLocation; }; export type MutationUpdateTaskChecklistNameArgs = { input: UpdateTaskChecklistName; }; export type MutationUpdateTaskCommentArgs = { input?: Maybe; }; export type MutationUpdateTaskDescriptionArgs = { input: UpdateTaskDescriptionInput; }; export type MutationUpdateTaskDueDateArgs = { input: UpdateTaskDueDate; }; export type MutationUpdateTaskGroupLocationArgs = { input: NewTaskGroupLocation; }; export type MutationUpdateTaskGroupNameArgs = { input: UpdateTaskGroupName; }; export type MutationUpdateTaskLocationArgs = { input: NewTaskLocation; }; export type MutationUpdateTaskNameArgs = { input: UpdateTaskName; }; export type MutationUpdateTeamMemberRoleArgs = { input: UpdateTeamMemberRole; }; export type MutationUpdateUserInfoArgs = { input: UpdateUserInfo; }; export type MutationUpdateUserPasswordArgs = { input: UpdateUserPassword; }; export type MutationUpdateUserRoleArgs = { input: UpdateUserRole; }; export type MyTasks = { status: MyTasksStatus; sort: MyTasksSort; }; export type MyTasksPayload = { __typename?: 'MyTasksPayload'; tasks: Array; projects: Array; }; export enum MyTasksSort { None = 'NONE', Project = 'PROJECT', DueDate = 'DUE_DATE' } export enum MyTasksStatus { All = 'ALL', Incomplete = 'INCOMPLETE', CompleteAll = 'COMPLETE_ALL', CompleteToday = 'COMPLETE_TODAY', CompleteYesterday = 'COMPLETE_YESTERDAY', CompleteOneWeek = 'COMPLETE_ONE_WEEK', CompleteTwoWeek = 'COMPLETE_TWO_WEEK', CompleteThreeWeek = 'COMPLETE_THREE_WEEK' } export type NewProject = { teamID?: Maybe; name: Scalars['String']; }; export type NewProjectLabel = { projectID: Scalars['UUID']; labelColorID: Scalars['UUID']; name?: Maybe; }; export type NewTask = { taskGroupID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; assigned?: Maybe>; }; export type NewTaskGroup = { projectID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }; export type NewTaskGroupLocation = { taskGroupID: Scalars['UUID']; position: Scalars['Float']; }; export type NewTaskLocation = { taskID: Scalars['UUID']; taskGroupID: Scalars['UUID']; position: Scalars['Float']; }; export type NewTeam = { name: Scalars['String']; organizationID: Scalars['UUID']; }; export type NewUserAccount = { username: Scalars['String']; email: Scalars['String']; fullName: Scalars['String']; initials: Scalars['String']; password: Scalars['String']; roleCode: Scalars['String']; }; export type Notification = { __typename?: 'Notification'; id: Scalars['ID']; actionType: ActionType; causedBy?: Maybe; data: Array; createdAt: Scalars['Time']; }; export type NotificationCausedBy = { __typename?: 'NotificationCausedBy'; fullname: Scalars['String']; username: Scalars['String']; id: Scalars['ID']; }; export type NotificationData = { __typename?: 'NotificationData'; key: Scalars['String']; value: Scalars['String']; }; export enum NotificationFilter { All = 'ALL', Unread = 'UNREAD', Assigned = 'ASSIGNED', Mentioned = 'MENTIONED' } export type NotificationToggleReadInput = { notifiedID: Scalars['UUID']; }; export type Notified = { __typename?: 'Notified'; id: Scalars['ID']; notification: Notification; read: Scalars['Boolean']; readAt?: Maybe; }; export type NotifiedInput = { limit: Scalars['Int']; cursor?: Maybe; filter: NotificationFilter; }; export type NotifiedResult = { __typename?: 'NotifiedResult'; totalCount: Scalars['Int']; notified: Array; pageInfo: PageInfo; }; export enum ObjectType { Org = 'ORG', Team = 'TEAM', Project = 'PROJECT', Task = 'TASK', TaskGroup = 'TASK_GROUP', TaskChecklist = 'TASK_CHECKLIST', TaskChecklistItem = 'TASK_CHECKLIST_ITEM' } export type Organization = { __typename?: 'Organization'; id: Scalars['ID']; name: Scalars['String']; }; export type OwnedList = { __typename?: 'OwnedList'; teams: Array; projects: Array; }; export type OwnersList = { __typename?: 'OwnersList'; projects: Array; teams: Array; }; export type PageInfo = { __typename?: 'PageInfo'; endCursor: Scalars['String']; hasNextPage: Scalars['Boolean']; }; export type ProfileIcon = { __typename?: 'ProfileIcon'; url?: Maybe; initials?: Maybe; bgColor?: Maybe; }; export type Project = { __typename?: 'Project'; id: Scalars['ID']; createdAt: Scalars['Time']; name: Scalars['String']; team?: Maybe; taskGroups: Array; members: Array; invitedMembers: Array; publicOn?: Maybe; permission: ProjectPermission; labels: Array; }; export type ProjectLabel = { __typename?: 'ProjectLabel'; id: Scalars['ID']; createdDate: Scalars['Time']; labelColor: LabelColor; name?: Maybe; }; export type ProjectPermission = { __typename?: 'ProjectPermission'; team: RoleCode; project: RoleCode; org: RoleCode; }; export type ProjectRole = { __typename?: 'ProjectRole'; projectID: Scalars['UUID']; roleCode: RoleCode; }; export type ProjectTaskMapping = { __typename?: 'ProjectTaskMapping'; projectID: Scalars['UUID']; taskID: Scalars['UUID']; }; export type ProjectsFilter = { teamID?: Maybe; }; export type Query = { __typename?: 'Query'; findProject: Project; findTask: Task; findTeam: Team; findUser: UserAccount; hasUnreadNotifications: HasUnreadNotificationsResult; invitedUsers: Array; labelColors: Array; me?: Maybe; myTasks: MyTasksPayload; notifications: Array; notified: NotifiedResult; organizations: Array; projects: Array; searchMembers: Array; taskGroups: Array; teams: Array; users: Array; }; export type QueryFindProjectArgs = { input: FindProject; }; export type QueryFindTaskArgs = { input: FindTask; }; export type QueryFindTeamArgs = { input: FindTeam; }; export type QueryFindUserArgs = { input: FindUser; }; export type QueryMyTasksArgs = { input: MyTasks; }; export type QueryNotifiedArgs = { input: NotifiedInput; }; export type QueryProjectsArgs = { input?: Maybe; }; export type QuerySearchMembersArgs = { input: MemberSearchFilter; }; export type RemoveTaskLabelInput = { taskID: Scalars['UUID']; taskLabelID: Scalars['UUID']; }; export type Role = { __typename?: 'Role'; code: Scalars['String']; name: Scalars['String']; }; export enum RoleCode { Owner = 'owner', Admin = 'admin', Member = 'member', Observer = 'observer' } export enum RoleLevel { Admin = 'ADMIN', Member = 'MEMBER' } export type SetTaskChecklistItemComplete = { taskChecklistItemID: Scalars['UUID']; complete: Scalars['Boolean']; }; export type SetTaskComplete = { taskID: Scalars['UUID']; complete: Scalars['Boolean']; }; export enum ShareStatus { Invited = 'INVITED', Joined = 'JOINED' } export type SortTaskGroup = { taskGroupID: Scalars['UUID']; tasks: Array; }; export type SortTaskGroupPayload = { __typename?: 'SortTaskGroupPayload'; taskGroupID: Scalars['UUID']; tasks: Array; }; export type Subscription = { __typename?: 'Subscription'; notificationAdded: Notified; }; export type Task = { __typename?: 'Task'; id: Scalars['ID']; taskGroup: TaskGroup; createdAt: Scalars['Time']; name: Scalars['String']; position: Scalars['Float']; description?: Maybe; watched: Scalars['Boolean']; dueDate?: Maybe; hasTime: Scalars['Boolean']; complete: Scalars['Boolean']; completedAt?: Maybe; assigned: Array; labels: Array; checklists: Array; badges: TaskBadges; activity: Array; comments: Array; }; export type TaskActivity = { __typename?: 'TaskActivity'; id: Scalars['ID']; type: ActivityType; data: Array; causedBy: CausedBy; createdAt: Scalars['Time']; }; export type TaskActivityData = { __typename?: 'TaskActivityData'; name: Scalars['String']; value: Scalars['String']; }; export type TaskBadges = { __typename?: 'TaskBadges'; checklist?: Maybe; comments?: Maybe; }; export type TaskChecklist = { __typename?: 'TaskChecklist'; id: Scalars['ID']; name: Scalars['String']; position: Scalars['Float']; items: Array; }; export type TaskChecklistItem = { __typename?: 'TaskChecklistItem'; id: Scalars['ID']; name: Scalars['String']; taskChecklistID: Scalars['UUID']; complete: Scalars['Boolean']; position: Scalars['Float']; dueDate: Scalars['Time']; }; export type TaskComment = { __typename?: 'TaskComment'; id: Scalars['ID']; createdAt: Scalars['Time']; updatedAt?: Maybe; message: Scalars['String']; createdBy: CreatedBy; pinned: Scalars['Boolean']; }; export type TaskGroup = { __typename?: 'TaskGroup'; id: Scalars['ID']; projectID: Scalars['String']; createdAt: Scalars['Time']; name: Scalars['String']; position: Scalars['Float']; tasks: Array; }; export type TaskLabel = { __typename?: 'TaskLabel'; id: Scalars['ID']; projectLabel: ProjectLabel; assignedDate: Scalars['Time']; }; export type TaskPositionUpdate = { taskID: Scalars['UUID']; position: Scalars['Float']; }; export type Team = { __typename?: 'Team'; id: Scalars['ID']; createdAt: Scalars['Time']; name: Scalars['String']; permission: TeamPermission; members: Array; }; export type TeamPermission = { __typename?: 'TeamPermission'; team: RoleCode; org: RoleCode; }; export type TeamRole = { __typename?: 'TeamRole'; teamID: Scalars['UUID']; roleCode: RoleCode; }; export type ToggleProjectVisibility = { projectID: Scalars['UUID']; isPublic: Scalars['Boolean']; }; export type ToggleProjectVisibilityPayload = { __typename?: 'ToggleProjectVisibilityPayload'; project: Project; }; export type ToggleTaskLabelInput = { taskID: Scalars['UUID']; projectLabelID: Scalars['UUID']; }; export type ToggleTaskLabelPayload = { __typename?: 'ToggleTaskLabelPayload'; active: Scalars['Boolean']; task: Task; }; export type ToggleTaskWatch = { taskID: Scalars['UUID']; }; export type UnassignTaskInput = { taskID: Scalars['UUID']; userID: Scalars['UUID']; }; export type UpdateProjectLabel = { projectLabelID: Scalars['UUID']; labelColorID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectLabelColor = { projectLabelID: Scalars['UUID']; labelColorID: Scalars['UUID']; }; export type UpdateProjectLabelName = { projectLabelID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateProjectMemberRole = { projectID: Scalars['UUID']; userID: Scalars['UUID']; roleCode: RoleCode; }; export type UpdateProjectMemberRolePayload = { __typename?: 'UpdateProjectMemberRolePayload'; ok: Scalars['Boolean']; member: Member; }; export type UpdateProjectName = { projectID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateTaskChecklistItemLocation = { taskChecklistID: Scalars['UUID']; taskChecklistItemID: Scalars['UUID']; position: Scalars['Float']; }; export type UpdateTaskChecklistItemLocationPayload = { __typename?: 'UpdateTaskChecklistItemLocationPayload'; taskChecklistID: Scalars['UUID']; prevChecklistID: Scalars['UUID']; checklistItem: TaskChecklistItem; }; export type UpdateTaskChecklistItemName = { taskChecklistItemID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateTaskChecklistLocation = { taskChecklistID: Scalars['UUID']; position: Scalars['Float']; }; export type UpdateTaskChecklistLocationPayload = { __typename?: 'UpdateTaskChecklistLocationPayload'; checklist: TaskChecklist; }; export type UpdateTaskChecklistName = { taskChecklistID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateTaskComment = { commentID: Scalars['UUID']; message: Scalars['String']; }; export type UpdateTaskCommentPayload = { __typename?: 'UpdateTaskCommentPayload'; taskID: Scalars['UUID']; comment: TaskComment; }; export type UpdateTaskDescriptionInput = { taskID: Scalars['UUID']; description: Scalars['String']; }; export type UpdateTaskDueDate = { taskID: Scalars['UUID']; hasTime: Scalars['Boolean']; dueDate?: Maybe; }; export type UpdateTaskGroupName = { taskGroupID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateTaskLocationPayload = { __typename?: 'UpdateTaskLocationPayload'; previousTaskGroupID: Scalars['UUID']; task: Task; }; export type UpdateTaskName = { taskID: Scalars['UUID']; name: Scalars['String']; }; export type UpdateTeamMemberRole = { teamID: Scalars['UUID']; userID: Scalars['UUID']; roleCode: RoleCode; }; export type UpdateTeamMemberRolePayload = { __typename?: 'UpdateTeamMemberRolePayload'; ok: Scalars['Boolean']; teamID: Scalars['UUID']; member: Member; }; export type UpdateUserInfo = { name: Scalars['String']; initials: Scalars['String']; email: Scalars['String']; bio: Scalars['String']; }; export type UpdateUserInfoPayload = { __typename?: 'UpdateUserInfoPayload'; user: UserAccount; }; export type UpdateUserPassword = { userID: Scalars['UUID']; password: Scalars['String']; }; export type UpdateUserPasswordPayload = { __typename?: 'UpdateUserPasswordPayload'; ok: Scalars['Boolean']; user: UserAccount; }; export type UpdateUserRole = { userID: Scalars['UUID']; roleCode: RoleCode; }; export type UpdateUserRolePayload = { __typename?: 'UpdateUserRolePayload'; user: UserAccount; }; export type UserAccount = { __typename?: 'UserAccount'; id: Scalars['ID']; email: Scalars['String']; createdAt: Scalars['Time']; fullName: Scalars['String']; initials: Scalars['String']; bio: Scalars['String']; role: Role; username: Scalars['String']; profileIcon: ProfileIcon; owned: OwnedList; member: MemberList; }; export type AssignTaskMutationVariables = Exact<{ taskID: Scalars['UUID']; userID: Scalars['UUID']; }>; export type AssignTaskMutation = ( { __typename?: 'Mutation' } & { assignTask: ( { __typename?: 'Task' } & Pick & { assigned: Array<( { __typename?: 'Member' } & Pick )> } ) } ); export type ClearProfileAvatarMutationVariables = Exact<{ [key: string]: never; }>; export type ClearProfileAvatarMutation = ( { __typename?: 'Mutation' } & { clearProfileAvatar: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } ); export type CreateProjectMutationVariables = Exact<{ teamID?: Maybe; name: Scalars['String']; }>; export type CreateProjectMutation = ( { __typename?: 'Mutation' } & { createProject: ( { __typename?: 'Project' } & Pick & { team?: Maybe<( { __typename?: 'Team' } & Pick )> } ) } ); export type CreateProjectLabelMutationVariables = Exact<{ projectID: Scalars['UUID']; labelColorID: Scalars['UUID']; name: Scalars['String']; }>; export type CreateProjectLabelMutation = ( { __typename?: 'Mutation' } & { createProjectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } ); export type CreateTaskGroupMutationVariables = Exact<{ projectID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }>; export type CreateTaskGroupMutation = ( { __typename?: 'Mutation' } & { createTaskGroup: ( { __typename?: 'TaskGroup' } & Pick ) } ); export type DeleteProjectLabelMutationVariables = Exact<{ projectLabelID: Scalars['UUID']; }>; export type DeleteProjectLabelMutation = ( { __typename?: 'Mutation' } & { deleteProjectLabel: ( { __typename?: 'ProjectLabel' } & Pick ) } ); export type DeleteTaskMutationVariables = Exact<{ taskID: Scalars['UUID']; }>; export type DeleteTaskMutation = ( { __typename?: 'Mutation' } & { deleteTask: ( { __typename?: 'DeleteTaskPayload' } & Pick ) } ); export type DeleteTaskGroupMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; }>; export type DeleteTaskGroupMutation = ( { __typename?: 'Mutation' } & { deleteTaskGroup: ( { __typename?: 'DeleteTaskGroupPayload' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick & { tasks: Array<( { __typename?: 'Task' } & Pick )> } ) } ) } ); export type FindProjectQueryVariables = Exact<{ projectID: Scalars['UUID']; }>; export type FindProjectQuery = ( { __typename?: 'Query' } & { findProject: ( { __typename?: 'Project' } & Pick & { team?: Maybe<( { __typename?: 'Team' } & Pick )>, members: Array<( { __typename?: 'Member' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )>, invitedMembers: Array<( { __typename?: 'InvitedMember' } & Pick )>, labels: Array<( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } )>, taskGroups: Array<( { __typename?: 'TaskGroup' } & Pick & { tasks: Array<( { __typename?: 'Task' } & TaskFieldsFragment )> } )> } ), labelColors: Array<( { __typename?: 'LabelColor' } & Pick )>, users: Array<( { __typename?: 'UserAccount' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), owned: ( { __typename?: 'OwnedList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ), member: ( { __typename?: 'MemberList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ) } )> } ); export type FindTaskQueryVariables = Exact<{ taskID: Scalars['UUID']; }>; export type FindTaskQuery = ( { __typename?: 'Query' } & { findTask: ( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ), comments: Array<( { __typename?: 'TaskComment' } & Pick & { createdBy: ( { __typename?: 'CreatedBy' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } )>, activity: Array<( { __typename?: 'TaskActivity' } & Pick & { causedBy: ( { __typename?: 'CausedBy' } & Pick & { profileIcon?: Maybe<( { __typename?: 'ProfileIcon' } & Pick )> } ), data: Array<( { __typename?: 'TaskActivityData' } & Pick )> } )>, badges: ( { __typename?: 'TaskBadges' } & { checklist?: Maybe<( { __typename?: 'ChecklistBadge' } & Pick )> } ), checklists: Array<( { __typename?: 'TaskChecklist' } & Pick & { items: Array<( { __typename?: 'TaskChecklistItem' } & Pick )> } )>, labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )>, assigned: Array<( { __typename?: 'Member' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )> } ), me?: Maybe<( { __typename?: 'MePayload' } & { user: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } )> } ); export type TaskFieldsFragment = ( { __typename?: 'Task' } & Pick & { badges: ( { __typename?: 'TaskBadges' } & { checklist?: Maybe<( { __typename?: 'ChecklistBadge' } & Pick )>, comments?: Maybe<( { __typename?: 'CommentsBadge' } & Pick )> } ), taskGroup: ( { __typename?: 'TaskGroup' } & Pick ), labels: Array<( { __typename?: 'TaskLabel' } & Pick & { projectLabel: ( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } ) } )>, assigned: Array<( { __typename?: 'Member' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } )> } ); export type GetProjectsQueryVariables = Exact<{ [key: string]: never; }>; export type GetProjectsQuery = ( { __typename?: 'Query' } & { organizations: Array<( { __typename?: 'Organization' } & Pick )>, teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick & { team?: Maybe<( { __typename?: 'Team' } & Pick )> } )> } ); export type LabelsQueryVariables = Exact<{ projectID: Scalars['UUID']; }>; export type LabelsQuery = ( { __typename?: 'Query' } & { findProject: ( { __typename?: 'Project' } & { labels: Array<( { __typename?: 'ProjectLabel' } & Pick & { labelColor: ( { __typename?: 'LabelColor' } & Pick ) } )> } ), labelColors: Array<( { __typename?: 'LabelColor' } & Pick )> } ); export type MeQueryVariables = Exact<{ [key: string]: never; }>; export type MeQuery = ( { __typename?: 'Query' } & { me?: Maybe<( { __typename?: 'MePayload' } & { user: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ), teamRoles: Array<( { __typename?: 'TeamRole' } & Pick )>, projectRoles: Array<( { __typename?: 'ProjectRole' } & Pick )> } )> } ); export type MyTasksQueryVariables = Exact<{ status: MyTasksStatus; sort: MyTasksSort; }>; export type MyTasksQuery = ( { __typename?: 'Query' } & { projects: Array<( { __typename?: 'Project' } & Pick )>, myTasks: ( { __typename?: 'MyTasksPayload' } & { tasks: Array<( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ) } )>, projects: Array<( { __typename?: 'ProjectTaskMapping' } & Pick )> } ) } ); export type NotificationToggleReadMutationVariables = Exact<{ notifiedID: Scalars['UUID']; }>; export type NotificationToggleReadMutation = ( { __typename?: 'Mutation' } & { notificationToggleRead: ( { __typename?: 'Notified' } & Pick ) } ); export type NotificationsQueryVariables = Exact<{ limit: Scalars['Int']; cursor?: Maybe; filter: NotificationFilter; }>; export type NotificationsQuery = ( { __typename?: 'Query' } & { notified: ( { __typename?: 'NotifiedResult' } & Pick & { pageInfo: ( { __typename?: 'PageInfo' } & Pick ), notified: Array<( { __typename?: 'Notified' } & Pick & { notification: ( { __typename?: 'Notification' } & Pick & { data: Array<( { __typename?: 'NotificationData' } & Pick )>, causedBy?: Maybe<( { __typename?: 'NotificationCausedBy' } & Pick )> } ) } )> } ) } ); export type NotificationAddedSubscriptionVariables = Exact<{ [key: string]: never; }>; export type NotificationAddedSubscription = ( { __typename?: 'Subscription' } & { notificationAdded: ( { __typename?: 'Notified' } & Pick & { notification: ( { __typename?: 'Notification' } & Pick & { data: Array<( { __typename?: 'NotificationData' } & Pick )>, causedBy?: Maybe<( { __typename?: 'NotificationCausedBy' } & Pick )> } ) } ) } ); export type DeleteProjectMutationVariables = Exact<{ projectID: Scalars['UUID']; }>; export type DeleteProjectMutation = ( { __typename?: 'Mutation' } & { deleteProject: ( { __typename?: 'DeleteProjectPayload' } & Pick & { project: ( { __typename?: 'Project' } & Pick ) } ) } ); export type DeleteInvitedProjectMemberMutationVariables = Exact<{ projectID: Scalars['UUID']; email: Scalars['String']; }>; export type DeleteInvitedProjectMemberMutation = ( { __typename?: 'Mutation' } & { deleteInvitedProjectMember: ( { __typename?: 'DeleteInvitedProjectMemberPayload' } & { invitedMember: ( { __typename?: 'InvitedMember' } & Pick ) } ) } ); export type DeleteProjectMemberMutationVariables = Exact<{ projectID: Scalars['UUID']; userID: Scalars['UUID']; }>; export type DeleteProjectMemberMutation = ( { __typename?: 'Mutation' } & { deleteProjectMember: ( { __typename?: 'DeleteProjectMemberPayload' } & Pick & { member: ( { __typename?: 'Member' } & Pick ) } ) } ); export type InviteProjectMembersMutationVariables = Exact<{ projectID: Scalars['UUID']; members: Array | MemberInvite; }>; export type InviteProjectMembersMutation = ( { __typename?: 'Mutation' } & { inviteProjectMembers: ( { __typename?: 'InviteProjectMembersPayload' } & Pick & { invitedMembers: Array<( { __typename?: 'InvitedMember' } & Pick )>, members: Array<( { __typename?: 'Member' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), role: ( { __typename?: 'Role' } & Pick ) } )> } ) } ); export type UpdateProjectMemberRoleMutationVariables = Exact<{ projectID: Scalars['UUID']; userID: Scalars['UUID']; roleCode: RoleCode; }>; export type UpdateProjectMemberRoleMutation = ( { __typename?: 'Mutation' } & { updateProjectMemberRole: ( { __typename?: 'UpdateProjectMemberRolePayload' } & Pick & { member: ( { __typename?: 'Member' } & Pick & { role: ( { __typename?: 'Role' } & Pick ) } ) } ) } ); export type CreateTaskMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; assigned?: Maybe | Scalars['UUID']>; }>; export type CreateTaskMutation = ( { __typename?: 'Mutation' } & { createTask: ( { __typename?: 'Task' } & TaskFieldsFragment ) } ); export type CreateTaskChecklistMutationVariables = Exact<{ taskID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }>; export type CreateTaskChecklistMutation = ( { __typename?: 'Mutation' } & { createTaskChecklist: ( { __typename?: 'TaskChecklist' } & Pick & { items: Array<( { __typename?: 'TaskChecklistItem' } & Pick )> } ) } ); export type CreateTaskChecklistItemMutationVariables = Exact<{ taskChecklistID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; }>; export type CreateTaskChecklistItemMutation = ( { __typename?: 'Mutation' } & { createTaskChecklistItem: ( { __typename?: 'TaskChecklistItem' } & Pick ) } ); export type CreateTaskCommentMutationVariables = Exact<{ taskID: Scalars['UUID']; message: Scalars['String']; }>; export type CreateTaskCommentMutation = ( { __typename?: 'Mutation' } & { createTaskComment: ( { __typename?: 'CreateTaskCommentPayload' } & Pick & { comment: ( { __typename?: 'TaskComment' } & Pick & { createdBy: ( { __typename?: 'CreatedBy' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } ) } ) } ); export type DeleteTaskChecklistMutationVariables = Exact<{ taskChecklistID: Scalars['UUID']; }>; export type DeleteTaskChecklistMutation = ( { __typename?: 'Mutation' } & { deleteTaskChecklist: ( { __typename?: 'DeleteTaskChecklistPayload' } & Pick & { taskChecklist: ( { __typename?: 'TaskChecklist' } & Pick ) } ) } ); export type DeleteTaskChecklistItemMutationVariables = Exact<{ taskChecklistItemID: Scalars['UUID']; }>; export type DeleteTaskChecklistItemMutation = ( { __typename?: 'Mutation' } & { deleteTaskChecklistItem: ( { __typename?: 'DeleteTaskChecklistItemPayload' } & Pick & { taskChecklistItem: ( { __typename?: 'TaskChecklistItem' } & Pick ) } ) } ); export type DeleteTaskCommentMutationVariables = Exact<{ commentID: Scalars['UUID']; }>; export type DeleteTaskCommentMutation = ( { __typename?: 'Mutation' } & { deleteTaskComment: ( { __typename?: 'DeleteTaskCommentPayload' } & Pick ) } ); export type SetTaskChecklistItemCompleteMutationVariables = Exact<{ taskChecklistItemID: Scalars['UUID']; complete: Scalars['Boolean']; }>; export type SetTaskChecklistItemCompleteMutation = ( { __typename?: 'Mutation' } & { setTaskChecklistItemComplete: ( { __typename?: 'TaskChecklistItem' } & Pick ) } ); export type SetTaskCompleteMutationVariables = Exact<{ taskID: Scalars['UUID']; complete: Scalars['Boolean']; }>; export type SetTaskCompleteMutation = ( { __typename?: 'Mutation' } & { setTaskComplete: ( { __typename?: 'Task' } & TaskFieldsFragment ) } ); export type ToggleTaskWatchMutationVariables = Exact<{ taskID: Scalars['UUID']; }>; export type ToggleTaskWatchMutation = ( { __typename?: 'Mutation' } & { toggleTaskWatch: ( { __typename?: 'Task' } & Pick ) } ); export type UpdateTaskChecklistItemLocationMutationVariables = Exact<{ taskChecklistID: Scalars['UUID']; taskChecklistItemID: Scalars['UUID']; position: Scalars['Float']; }>; export type UpdateTaskChecklistItemLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskChecklistItemLocation: ( { __typename?: 'UpdateTaskChecklistItemLocationPayload' } & Pick & { checklistItem: ( { __typename?: 'TaskChecklistItem' } & Pick ) } ) } ); export type UpdateTaskChecklistItemNameMutationVariables = Exact<{ taskChecklistItemID: Scalars['UUID']; name: Scalars['String']; }>; export type UpdateTaskChecklistItemNameMutation = ( { __typename?: 'Mutation' } & { updateTaskChecklistItemName: ( { __typename?: 'TaskChecklistItem' } & Pick ) } ); export type UpdateTaskChecklistLocationMutationVariables = Exact<{ taskChecklistID: Scalars['UUID']; position: Scalars['Float']; }>; export type UpdateTaskChecklistLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskChecklistLocation: ( { __typename?: 'UpdateTaskChecklistLocationPayload' } & { checklist: ( { __typename?: 'TaskChecklist' } & Pick ) } ) } ); export type UpdateTaskChecklistNameMutationVariables = Exact<{ taskChecklistID: Scalars['UUID']; name: Scalars['String']; }>; export type UpdateTaskChecklistNameMutation = ( { __typename?: 'Mutation' } & { updateTaskChecklistName: ( { __typename?: 'TaskChecklist' } & Pick & { items: Array<( { __typename?: 'TaskChecklistItem' } & Pick )> } ) } ); export type UpdateTaskCommentMutationVariables = Exact<{ commentID: Scalars['UUID']; message: Scalars['String']; }>; export type UpdateTaskCommentMutation = ( { __typename?: 'Mutation' } & { updateTaskComment: ( { __typename?: 'UpdateTaskCommentPayload' } & { comment: ( { __typename?: 'TaskComment' } & Pick ) } ) } ); export type DeleteTaskGroupTasksMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; }>; export type DeleteTaskGroupTasksMutation = ( { __typename?: 'Mutation' } & { deleteTaskGroupTasks: ( { __typename?: 'DeleteTaskGroupTasksPayload' } & Pick ) } ); export type DuplicateTaskGroupMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; name: Scalars['String']; position: Scalars['Float']; projectID: Scalars['UUID']; }>; export type DuplicateTaskGroupMutation = ( { __typename?: 'Mutation' } & { duplicateTaskGroup: ( { __typename?: 'DuplicateTaskGroupPayload' } & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick & { tasks: Array<( { __typename?: 'Task' } & TaskFieldsFragment )> } ) } ) } ); export type SortTaskGroupMutationVariables = Exact<{ tasks: Array | TaskPositionUpdate; taskGroupID: Scalars['UUID']; }>; export type SortTaskGroupMutation = ( { __typename?: 'Mutation' } & { sortTaskGroup: ( { __typename?: 'SortTaskGroupPayload' } & Pick & { tasks: Array<( { __typename?: 'Task' } & Pick )> } ) } ); export type UpdateTaskGroupNameMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; name: Scalars['String']; }>; export type UpdateTaskGroupNameMutation = ( { __typename?: 'Mutation' } & { updateTaskGroupName: ( { __typename?: 'TaskGroup' } & Pick ) } ); export type CreateTeamMutationVariables = Exact<{ name: Scalars['String']; organizationID: Scalars['UUID']; }>; export type CreateTeamMutation = ( { __typename?: 'Mutation' } & { createTeam: ( { __typename?: 'Team' } & Pick ) } ); export type CreateTeamMemberMutationVariables = Exact<{ userID: Scalars['UUID']; teamID: Scalars['UUID']; }>; export type CreateTeamMemberMutation = ( { __typename?: 'Mutation' } & { createTeamMember: ( { __typename?: 'CreateTeamMemberPayload' } & { team: ( { __typename?: 'Team' } & Pick ), teamMember: ( { __typename?: 'Member' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } ) } ); export type DeleteTeamMutationVariables = Exact<{ teamID: Scalars['UUID']; }>; export type DeleteTeamMutation = ( { __typename?: 'Mutation' } & { deleteTeam: ( { __typename?: 'DeleteTeamPayload' } & Pick & { team: ( { __typename?: 'Team' } & Pick ) } ) } ); export type DeleteTeamMemberMutationVariables = Exact<{ teamID: Scalars['UUID']; userID: Scalars['UUID']; newOwnerID?: Maybe; }>; export type DeleteTeamMemberMutation = ( { __typename?: 'Mutation' } & { deleteTeamMember: ( { __typename?: 'DeleteTeamMemberPayload' } & Pick ) } ); export type GetTeamQueryVariables = Exact<{ teamID: Scalars['UUID']; }>; export type GetTeamQuery = ( { __typename?: 'Query' } & { findTeam: ( { __typename?: 'Team' } & Pick & { members: Array<( { __typename?: 'Member' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), owned: ( { __typename?: 'OwnedList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ), member: ( { __typename?: 'MemberList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ) } )> } ), projects: Array<( { __typename?: 'Project' } & Pick & { team?: Maybe<( { __typename?: 'Team' } & Pick )> } )>, users: Array<( { __typename?: 'UserAccount' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), owned: ( { __typename?: 'OwnedList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ), member: ( { __typename?: 'MemberList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ) } )> } ); export type UpdateTeamMemberRoleMutationVariables = Exact<{ teamID: Scalars['UUID']; userID: Scalars['UUID']; roleCode: RoleCode; }>; export type UpdateTeamMemberRoleMutation = ( { __typename?: 'Mutation' } & { updateTeamMemberRole: ( { __typename?: 'UpdateTeamMemberRolePayload' } & Pick & { member: ( { __typename?: 'Member' } & Pick & { role: ( { __typename?: 'Role' } & Pick ) } ) } ) } ); export type ToggleProjectVisibilityMutationVariables = Exact<{ projectID: Scalars['UUID']; isPublic: Scalars['Boolean']; }>; export type ToggleProjectVisibilityMutation = ( { __typename?: 'Mutation' } & { toggleProjectVisibility: ( { __typename?: 'ToggleProjectVisibilityPayload' } & { project: ( { __typename?: 'Project' } & Pick ) } ) } ); export type ToggleTaskLabelMutationVariables = Exact<{ 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 TopNavbarQueryVariables = Exact<{ [key: string]: never; }>; export type TopNavbarQuery = ( { __typename?: 'Query' } & { notifications: Array<( { __typename?: 'Notified' } & Pick & { notification: ( { __typename?: 'Notification' } & Pick & { causedBy?: Maybe<( { __typename?: 'NotificationCausedBy' } & Pick )> } ) } )>, me?: Maybe<( { __typename?: 'MePayload' } & { user: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ), teamRoles: Array<( { __typename?: 'TeamRole' } & Pick )>, projectRoles: Array<( { __typename?: 'ProjectRole' } & Pick )> } )> } ); export type UnassignTaskMutationVariables = Exact<{ taskID: Scalars['UUID']; userID: Scalars['UUID']; }>; export type UnassignTaskMutation = ( { __typename?: 'Mutation' } & { unassignTask: ( { __typename?: 'Task' } & Pick & { assigned: Array<( { __typename?: 'Member' } & Pick )> } ) } ); export type HasUnreadNotificationsQueryVariables = Exact<{ [key: string]: never; }>; export type HasUnreadNotificationsQuery = ( { __typename?: 'Query' } & { hasUnreadNotifications: ( { __typename?: 'HasUnreadNotificationsResult' } & Pick ) } ); export type UpdateProjectLabelMutationVariables = Exact<{ 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 = Exact<{ projectID: Scalars['UUID']; name: Scalars['String']; }>; export type UpdateProjectNameMutation = ( { __typename?: 'Mutation' } & { updateProjectName: ( { __typename?: 'Project' } & Pick ) } ); export type UpdateTaskDescriptionMutationVariables = Exact<{ taskID: Scalars['UUID']; description: Scalars['String']; }>; export type UpdateTaskDescriptionMutation = ( { __typename?: 'Mutation' } & { updateTaskDescription: ( { __typename?: 'Task' } & Pick ) } ); export type UpdateTaskDueDateMutationVariables = Exact<{ taskID: Scalars['UUID']; dueDate?: Maybe; hasTime: Scalars['Boolean']; }>; export type UpdateTaskDueDateMutation = ( { __typename?: 'Mutation' } & { updateTaskDueDate: ( { __typename?: 'Task' } & Pick ) } ); export type UpdateTaskGroupLocationMutationVariables = Exact<{ taskGroupID: Scalars['UUID']; position: Scalars['Float']; }>; export type UpdateTaskGroupLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskGroupLocation: ( { __typename?: 'TaskGroup' } & Pick ) } ); export type UpdateTaskLocationMutationVariables = Exact<{ taskID: Scalars['UUID']; taskGroupID: Scalars['UUID']; position: Scalars['Float']; }>; export type UpdateTaskLocationMutation = ( { __typename?: 'Mutation' } & { updateTaskLocation: ( { __typename?: 'UpdateTaskLocationPayload' } & Pick & { task: ( { __typename?: 'Task' } & Pick & { taskGroup: ( { __typename?: 'TaskGroup' } & Pick ) } ) } ) } ); export type UpdateTaskNameMutationVariables = Exact<{ taskID: Scalars['UUID']; name: Scalars['String']; }>; export type UpdateTaskNameMutation = ( { __typename?: 'Mutation' } & { updateTaskName: ( { __typename?: 'Task' } & Pick ) } ); export type CreateUserAccountMutationVariables = Exact<{ username: Scalars['String']; roleCode: Scalars['String']; email: Scalars['String']; fullName: Scalars['String']; initials: Scalars['String']; password: Scalars['String']; }>; export type CreateUserAccountMutation = ( { __typename?: 'Mutation' } & { createUserAccount: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), role: ( { __typename?: 'Role' } & Pick ), owned: ( { __typename?: 'OwnedList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ), member: ( { __typename?: 'MemberList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ) } ) } ); export type DeleteInvitedUserAccountMutationVariables = Exact<{ invitedUserID: Scalars['UUID']; }>; export type DeleteInvitedUserAccountMutation = ( { __typename?: 'Mutation' } & { deleteInvitedUserAccount: ( { __typename?: 'DeleteInvitedUserAccountPayload' } & { invitedUser: ( { __typename?: 'InvitedUserAccount' } & Pick ) } ) } ); export type DeleteUserAccountMutationVariables = Exact<{ userID: Scalars['UUID']; newOwnerID?: Maybe; }>; export type DeleteUserAccountMutation = ( { __typename?: 'Mutation' } & { deleteUserAccount: ( { __typename?: 'DeleteUserAccountPayload' } & Pick & { userAccount: ( { __typename?: 'UserAccount' } & Pick ) } ) } ); export type UpdateUserInfoMutationVariables = Exact<{ name: Scalars['String']; initials: Scalars['String']; email: Scalars['String']; bio: Scalars['String']; }>; export type UpdateUserInfoMutation = ( { __typename?: 'Mutation' } & { updateUserInfo: ( { __typename?: 'UpdateUserInfoPayload' } & { user: ( { __typename?: 'UserAccount' } & Pick & { profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ) } ) } ) } ); export type UpdateUserPasswordMutationVariables = Exact<{ userID: Scalars['UUID']; password: Scalars['String']; }>; export type UpdateUserPasswordMutation = ( { __typename?: 'Mutation' } & { updateUserPassword: ( { __typename?: 'UpdateUserPasswordPayload' } & Pick ) } ); export type UpdateUserRoleMutationVariables = Exact<{ userID: Scalars['UUID']; roleCode: RoleCode; }>; export type UpdateUserRoleMutation = ( { __typename?: 'Mutation' } & { updateUserRole: ( { __typename?: 'UpdateUserRolePayload' } & { user: ( { __typename?: 'UserAccount' } & Pick & { role: ( { __typename?: 'Role' } & Pick ) } ) } ) } ); export type UsersQueryVariables = Exact<{ [key: string]: never; }>; export type UsersQuery = ( { __typename?: 'Query' } & { invitedUsers: Array<( { __typename?: 'InvitedUserAccount' } & Pick )>, users: Array<( { __typename?: 'UserAccount' } & Pick & { role: ( { __typename?: 'Role' } & Pick ), profileIcon: ( { __typename?: 'ProfileIcon' } & Pick ), owned: ( { __typename?: 'OwnedList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ), member: ( { __typename?: 'MemberList' } & { teams: Array<( { __typename?: 'Team' } & Pick )>, projects: Array<( { __typename?: 'Project' } & Pick )> } ) } )> } ); export const TaskFieldsFragmentDoc = gql` fragment TaskFields on Task { id name description dueDate hasTime complete watched completedAt position badges { checklist { complete total } comments { unread total } } taskGroup { id name position } labels { id assignedDate projectLabel { id name createdDate labelColor { id colorHex position name } } } assigned { id fullName profileIcon { url initials bgColor } } } `; export const AssignTaskDocument = gql` mutation assignTask($taskID: UUID!, $userID: UUID!) { assignTask(input: {taskID: $taskID, userID: $userID}) { id assigned { id fullName } } } `; export type AssignTaskMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(AssignTaskDocument, options); } export type AssignTaskMutationHookResult = ReturnType; export type AssignTaskMutationResult = Apollo.MutationResult; export type AssignTaskMutationOptions = Apollo.BaseMutationOptions; export const ClearProfileAvatarDocument = gql` mutation clearProfileAvatar { clearProfileAvatar { id fullName profileIcon { initials bgColor url } } } `; export type ClearProfileAvatarMutationFn = Apollo.MutationFunction; /** * __useClearProfileAvatarMutation__ * * To run a mutation, you first call `useClearProfileAvatarMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useClearProfileAvatarMutation` 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 [clearProfileAvatarMutation, { data, loading, error }] = useClearProfileAvatarMutation({ * variables: { * }, * }); */ export function useClearProfileAvatarMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ClearProfileAvatarDocument, options); } export type ClearProfileAvatarMutationHookResult = ReturnType; export type ClearProfileAvatarMutationResult = Apollo.MutationResult; export type ClearProfileAvatarMutationOptions = Apollo.BaseMutationOptions; export const CreateProjectDocument = gql` mutation createProject($teamID: UUID, $name: String!) { createProject(input: {teamID: $teamID, name: $name}) { id name team { id name } } } `; export type CreateProjectMutationFn = Apollo.MutationFunction; /** * __useCreateProjectMutation__ * * To run a mutation, you first call `useCreateProjectMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateProjectMutation` 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 [createProjectMutation, { data, loading, error }] = useCreateProjectMutation({ * variables: { * teamID: // value for 'teamID' * name: // value for 'name' * }, * }); */ export function useCreateProjectMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateProjectDocument, options); } export type CreateProjectMutationHookResult = ReturnType; export type CreateProjectMutationResult = Apollo.MutationResult; export type CreateProjectMutationOptions = Apollo.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 = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateProjectLabelDocument, options); } export type CreateProjectLabelMutationHookResult = ReturnType; export type CreateProjectLabelMutationResult = Apollo.MutationResult; export type CreateProjectLabelMutationOptions = Apollo.BaseMutationOptions; export const CreateTaskGroupDocument = gql` mutation createTaskGroup($projectID: UUID!, $name: String!, $position: Float!) { createTaskGroup( input: {projectID: $projectID, name: $name, position: $position} ) { id name position } } `; export type CreateTaskGroupMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTaskGroupDocument, options); } export type CreateTaskGroupMutationHookResult = ReturnType; export type CreateTaskGroupMutationResult = Apollo.MutationResult; export type CreateTaskGroupMutationOptions = Apollo.BaseMutationOptions; export const DeleteProjectLabelDocument = gql` mutation deleteProjectLabel($projectLabelID: UUID!) { deleteProjectLabel(input: {projectLabelID: $projectLabelID}) { id } } `; export type DeleteProjectLabelMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteProjectLabelDocument, options); } export type DeleteProjectLabelMutationHookResult = ReturnType; export type DeleteProjectLabelMutationResult = Apollo.MutationResult; export type DeleteProjectLabelMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskDocument = gql` mutation deleteTask($taskID: UUID!) { deleteTask(input: {taskID: $taskID}) { taskID } } `; export type DeleteTaskMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskDocument, options); } export type DeleteTaskMutationHookResult = ReturnType; export type DeleteTaskMutationResult = Apollo.MutationResult; export type DeleteTaskMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskGroupDocument = gql` mutation deleteTaskGroup($taskGroupID: UUID!) { deleteTaskGroup(input: {taskGroupID: $taskGroupID}) { ok affectedRows taskGroup { id tasks { id name } } } } `; export type DeleteTaskGroupMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskGroupDocument, options); } export type DeleteTaskGroupMutationHookResult = ReturnType; export type DeleteTaskGroupMutationResult = Apollo.MutationResult; export type DeleteTaskGroupMutationOptions = Apollo.BaseMutationOptions; export const FindProjectDocument = gql` query findProject($projectID: UUID!) { findProject(input: {projectID: $projectID}) { name publicOn team { id } members { id fullName username role { code name } profileIcon { url initials bgColor } } invitedMembers { email invitedOn } labels { id createdDate name labelColor { id name colorHex position } } taskGroups { id name position tasks { ...TaskFields } } } labelColors { id position colorHex name } users { id email fullName username role { code name } profileIcon { url initials bgColor } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } ${TaskFieldsFragmentDoc}`; /** * __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: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindProjectDocument, options); } export function useFindProjectLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindProjectDocument, options); } export type FindProjectQueryHookResult = ReturnType; export type FindProjectLazyQueryHookResult = ReturnType; export type FindProjectQueryResult = Apollo.QueryResult; export const FindTaskDocument = gql` query findTask($taskID: UUID!) { findTask(input: {taskID: $taskID}) { id name watched description dueDate position complete hasTime taskGroup { id name } comments { id pinned message createdAt updatedAt createdBy { id fullName profileIcon { initials bgColor url } } } activity { id type causedBy { id fullName profileIcon { initials bgColor url } } createdAt data { name value } } badges { checklist { total complete } } checklists { id name position items { id name taskChecklistID complete position } } labels { id assignedDate projectLabel { id name createdDate labelColor { id colorHex position name } } } assigned { id fullName profileIcon { url initials bgColor } } } me { user { id fullName profileIcon { initials bgColor url } } } } `; /** * __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: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindTaskDocument, options); } export function useFindTaskLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindTaskDocument, options); } export type FindTaskQueryHookResult = ReturnType; export type FindTaskLazyQueryHookResult = ReturnType; export type FindTaskQueryResult = Apollo.QueryResult; export const GetProjectsDocument = gql` query getProjects { organizations { id name } teams { id name createdAt } 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?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetProjectsDocument, options); } export function useGetProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetProjectsDocument, options); } export type GetProjectsQueryHookResult = ReturnType; export type GetProjectsLazyQueryHookResult = ReturnType; export type GetProjectsQueryResult = Apollo.QueryResult; export const LabelsDocument = gql` query labels($projectID: UUID!) { findProject(input: {projectID: $projectID}) { labels { id createdDate name labelColor { id name colorHex position } } } labelColors { id position colorHex name } } `; /** * __useLabelsQuery__ * * To run a query within a React component, call `useLabelsQuery` and pass it any options that fit your needs. * When your component renders, `useLabelsQuery` 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 } = useLabelsQuery({ * variables: { * projectID: // value for 'projectID' * }, * }); */ export function useLabelsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(LabelsDocument, options); } export function useLabelsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(LabelsDocument, options); } export type LabelsQueryHookResult = ReturnType; export type LabelsLazyQueryHookResult = ReturnType; export type LabelsQueryResult = Apollo.QueryResult; export const MeDocument = gql` query me { me { user { id fullName username email bio profileIcon { initials bgColor url } } teamRoles { teamID roleCode } projectRoles { projectID roleCode } } } `; /** * __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?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(MeDocument, options); } export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(MeDocument, options); } export type MeQueryHookResult = ReturnType; export type MeLazyQueryHookResult = ReturnType; export type MeQueryResult = Apollo.QueryResult; export const MyTasksDocument = gql` query myTasks($status: MyTasksStatus!, $sort: MyTasksSort!) { projects { id name } myTasks(input: {status: $status, sort: $sort}) { tasks { id taskGroup { id name } name dueDate hasTime complete completedAt } projects { projectID taskID } } } `; /** * __useMyTasksQuery__ * * To run a query within a React component, call `useMyTasksQuery` and pass it any options that fit your needs. * When your component renders, `useMyTasksQuery` 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 } = useMyTasksQuery({ * variables: { * status: // value for 'status' * sort: // value for 'sort' * }, * }); */ export function useMyTasksQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(MyTasksDocument, options); } export function useMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(MyTasksDocument, options); } export type MyTasksQueryHookResult = ReturnType; export type MyTasksLazyQueryHookResult = ReturnType; export type MyTasksQueryResult = Apollo.QueryResult; export const NotificationToggleReadDocument = gql` mutation notificationToggleRead($notifiedID: UUID!) { notificationToggleRead(input: {notifiedID: $notifiedID}) { id read readAt } } `; export type NotificationToggleReadMutationFn = Apollo.MutationFunction; /** * __useNotificationToggleReadMutation__ * * To run a mutation, you first call `useNotificationToggleReadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useNotificationToggleReadMutation` 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 [notificationToggleReadMutation, { data, loading, error }] = useNotificationToggleReadMutation({ * variables: { * notifiedID: // value for 'notifiedID' * }, * }); */ export function useNotificationToggleReadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(NotificationToggleReadDocument, options); } export type NotificationToggleReadMutationHookResult = ReturnType; export type NotificationToggleReadMutationResult = Apollo.MutationResult; export type NotificationToggleReadMutationOptions = Apollo.BaseMutationOptions; export const NotificationsDocument = gql` query notifications($limit: Int!, $cursor: String, $filter: NotificationFilter!) { notified(input: {limit: $limit, cursor: $cursor, filter: $filter}) { totalCount pageInfo { endCursor hasNextPage } notified { id read readAt notification { id actionType data { key value } causedBy { username fullname id } createdAt } } } } `; /** * __useNotificationsQuery__ * * To run a query within a React component, call `useNotificationsQuery` and pass it any options that fit your needs. * When your component renders, `useNotificationsQuery` 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 } = useNotificationsQuery({ * variables: { * limit: // value for 'limit' * cursor: // value for 'cursor' * filter: // value for 'filter' * }, * }); */ export function useNotificationsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(NotificationsDocument, options); } export function useNotificationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(NotificationsDocument, options); } export type NotificationsQueryHookResult = ReturnType; export type NotificationsLazyQueryHookResult = ReturnType; export type NotificationsQueryResult = Apollo.QueryResult; export const NotificationAddedDocument = gql` subscription notificationAdded { notificationAdded { id read readAt notification { id actionType data { key value } causedBy { username fullname id } createdAt } } } `; /** * __useNotificationAddedSubscription__ * * To run a query within a React component, call `useNotificationAddedSubscription` and pass it any options that fit your needs. * When your component renders, `useNotificationAddedSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useNotificationAddedSubscription({ * variables: { * }, * }); */ export function useNotificationAddedSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useSubscription(NotificationAddedDocument, options); } export type NotificationAddedSubscriptionHookResult = ReturnType; export type NotificationAddedSubscriptionResult = Apollo.SubscriptionResult; export const DeleteProjectDocument = gql` mutation deleteProject($projectID: UUID!) { deleteProject(input: {projectID: $projectID}) { ok project { id } } } `; export type DeleteProjectMutationFn = Apollo.MutationFunction; /** * __useDeleteProjectMutation__ * * To run a mutation, you first call `useDeleteProjectMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteProjectMutation` 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 [deleteProjectMutation, { data, loading, error }] = useDeleteProjectMutation({ * variables: { * projectID: // value for 'projectID' * }, * }); */ export function useDeleteProjectMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteProjectDocument, options); } export type DeleteProjectMutationHookResult = ReturnType; export type DeleteProjectMutationResult = Apollo.MutationResult; export type DeleteProjectMutationOptions = Apollo.BaseMutationOptions; export const DeleteInvitedProjectMemberDocument = gql` mutation deleteInvitedProjectMember($projectID: UUID!, $email: String!) { deleteInvitedProjectMember(input: {projectID: $projectID, email: $email}) { invitedMember { email } } } `; export type DeleteInvitedProjectMemberMutationFn = Apollo.MutationFunction; /** * __useDeleteInvitedProjectMemberMutation__ * * To run a mutation, you first call `useDeleteInvitedProjectMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteInvitedProjectMemberMutation` 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 [deleteInvitedProjectMemberMutation, { data, loading, error }] = useDeleteInvitedProjectMemberMutation({ * variables: { * projectID: // value for 'projectID' * email: // value for 'email' * }, * }); */ export function useDeleteInvitedProjectMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteInvitedProjectMemberDocument, options); } export type DeleteInvitedProjectMemberMutationHookResult = ReturnType; export type DeleteInvitedProjectMemberMutationResult = Apollo.MutationResult; export type DeleteInvitedProjectMemberMutationOptions = Apollo.BaseMutationOptions; export const DeleteProjectMemberDocument = gql` mutation deleteProjectMember($projectID: UUID!, $userID: UUID!) { deleteProjectMember(input: {projectID: $projectID, userID: $userID}) { ok member { id } projectID } } `; export type DeleteProjectMemberMutationFn = Apollo.MutationFunction; /** * __useDeleteProjectMemberMutation__ * * To run a mutation, you first call `useDeleteProjectMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteProjectMemberMutation` 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 [deleteProjectMemberMutation, { data, loading, error }] = useDeleteProjectMemberMutation({ * variables: { * projectID: // value for 'projectID' * userID: // value for 'userID' * }, * }); */ export function useDeleteProjectMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteProjectMemberDocument, options); } export type DeleteProjectMemberMutationHookResult = ReturnType; export type DeleteProjectMemberMutationResult = Apollo.MutationResult; export type DeleteProjectMemberMutationOptions = Apollo.BaseMutationOptions; export const InviteProjectMembersDocument = gql` mutation inviteProjectMembers($projectID: UUID!, $members: [MemberInvite!]!) { inviteProjectMembers(input: {projectID: $projectID, members: $members}) { ok invitedMembers { email invitedOn } members { id fullName profileIcon { url initials bgColor } username role { code name } } } } `; export type InviteProjectMembersMutationFn = Apollo.MutationFunction; /** * __useInviteProjectMembersMutation__ * * To run a mutation, you first call `useInviteProjectMembersMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInviteProjectMembersMutation` 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 [inviteProjectMembersMutation, { data, loading, error }] = useInviteProjectMembersMutation({ * variables: { * projectID: // value for 'projectID' * members: // value for 'members' * }, * }); */ export function useInviteProjectMembersMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InviteProjectMembersDocument, options); } export type InviteProjectMembersMutationHookResult = ReturnType; export type InviteProjectMembersMutationResult = Apollo.MutationResult; export type InviteProjectMembersMutationOptions = Apollo.BaseMutationOptions; export const UpdateProjectMemberRoleDocument = gql` mutation updateProjectMemberRole($projectID: UUID!, $userID: UUID!, $roleCode: RoleCode!) { updateProjectMemberRole( input: {projectID: $projectID, userID: $userID, roleCode: $roleCode} ) { ok member { id role { code name } } } } `; export type UpdateProjectMemberRoleMutationFn = Apollo.MutationFunction; /** * __useUpdateProjectMemberRoleMutation__ * * To run a mutation, you first call `useUpdateProjectMemberRoleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateProjectMemberRoleMutation` 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 [updateProjectMemberRoleMutation, { data, loading, error }] = useUpdateProjectMemberRoleMutation({ * variables: { * projectID: // value for 'projectID' * userID: // value for 'userID' * roleCode: // value for 'roleCode' * }, * }); */ export function useUpdateProjectMemberRoleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateProjectMemberRoleDocument, options); } export type UpdateProjectMemberRoleMutationHookResult = ReturnType; export type UpdateProjectMemberRoleMutationResult = Apollo.MutationResult; export type UpdateProjectMemberRoleMutationOptions = Apollo.BaseMutationOptions; export const CreateTaskDocument = gql` mutation createTask($taskGroupID: UUID!, $name: String!, $position: Float!, $assigned: [UUID!]) { createTask( input: {taskGroupID: $taskGroupID, name: $name, position: $position, assigned: $assigned} ) { ...TaskFields } } ${TaskFieldsFragmentDoc}`; export type CreateTaskMutationFn = Apollo.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' * assigned: // value for 'assigned' * }, * }); */ export function useCreateTaskMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTaskDocument, options); } export type CreateTaskMutationHookResult = ReturnType; export type CreateTaskMutationResult = Apollo.MutationResult; export type CreateTaskMutationOptions = Apollo.BaseMutationOptions; export const CreateTaskChecklistDocument = gql` mutation createTaskChecklist($taskID: UUID!, $name: String!, $position: Float!) { createTaskChecklist(input: {taskID: $taskID, name: $name, position: $position}) { id name position items { id name taskChecklistID complete position } } } `; export type CreateTaskChecklistMutationFn = Apollo.MutationFunction; /** * __useCreateTaskChecklistMutation__ * * To run a mutation, you first call `useCreateTaskChecklistMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTaskChecklistMutation` 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 [createTaskChecklistMutation, { data, loading, error }] = useCreateTaskChecklistMutation({ * variables: { * taskID: // value for 'taskID' * name: // value for 'name' * position: // value for 'position' * }, * }); */ export function useCreateTaskChecklistMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTaskChecklistDocument, options); } export type CreateTaskChecklistMutationHookResult = ReturnType; export type CreateTaskChecklistMutationResult = Apollo.MutationResult; export type CreateTaskChecklistMutationOptions = Apollo.BaseMutationOptions; export const CreateTaskChecklistItemDocument = gql` mutation createTaskChecklistItem($taskChecklistID: UUID!, $name: String!, $position: Float!) { createTaskChecklistItem( input: {taskChecklistID: $taskChecklistID, name: $name, position: $position} ) { id name taskChecklistID position complete } } `; export type CreateTaskChecklistItemMutationFn = Apollo.MutationFunction; /** * __useCreateTaskChecklistItemMutation__ * * To run a mutation, you first call `useCreateTaskChecklistItemMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTaskChecklistItemMutation` 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 [createTaskChecklistItemMutation, { data, loading, error }] = useCreateTaskChecklistItemMutation({ * variables: { * taskChecklistID: // value for 'taskChecklistID' * name: // value for 'name' * position: // value for 'position' * }, * }); */ export function useCreateTaskChecklistItemMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTaskChecklistItemDocument, options); } export type CreateTaskChecklistItemMutationHookResult = ReturnType; export type CreateTaskChecklistItemMutationResult = Apollo.MutationResult; export type CreateTaskChecklistItemMutationOptions = Apollo.BaseMutationOptions; export const CreateTaskCommentDocument = gql` mutation createTaskComment($taskID: UUID!, $message: String!) { createTaskComment(input: {taskID: $taskID, message: $message}) { taskID comment { id message pinned createdAt updatedAt createdBy { id fullName profileIcon { initials bgColor url } } } } } `; export type CreateTaskCommentMutationFn = Apollo.MutationFunction; /** * __useCreateTaskCommentMutation__ * * To run a mutation, you first call `useCreateTaskCommentMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTaskCommentMutation` 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 [createTaskCommentMutation, { data, loading, error }] = useCreateTaskCommentMutation({ * variables: { * taskID: // value for 'taskID' * message: // value for 'message' * }, * }); */ export function useCreateTaskCommentMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTaskCommentDocument, options); } export type CreateTaskCommentMutationHookResult = ReturnType; export type CreateTaskCommentMutationResult = Apollo.MutationResult; export type CreateTaskCommentMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskChecklistDocument = gql` mutation deleteTaskChecklist($taskChecklistID: UUID!) { deleteTaskChecklist(input: {taskChecklistID: $taskChecklistID}) { ok taskChecklist { id } } } `; export type DeleteTaskChecklistMutationFn = Apollo.MutationFunction; /** * __useDeleteTaskChecklistMutation__ * * To run a mutation, you first call `useDeleteTaskChecklistMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskChecklistMutation` 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 [deleteTaskChecklistMutation, { data, loading, error }] = useDeleteTaskChecklistMutation({ * variables: { * taskChecklistID: // value for 'taskChecklistID' * }, * }); */ export function useDeleteTaskChecklistMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskChecklistDocument, options); } export type DeleteTaskChecklistMutationHookResult = ReturnType; export type DeleteTaskChecklistMutationResult = Apollo.MutationResult; export type DeleteTaskChecklistMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskChecklistItemDocument = gql` mutation deleteTaskChecklistItem($taskChecklistItemID: UUID!) { deleteTaskChecklistItem(input: {taskChecklistItemID: $taskChecklistItemID}) { ok taskChecklistItem { id taskChecklistID } } } `; export type DeleteTaskChecklistItemMutationFn = Apollo.MutationFunction; /** * __useDeleteTaskChecklistItemMutation__ * * To run a mutation, you first call `useDeleteTaskChecklistItemMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskChecklistItemMutation` 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 [deleteTaskChecklistItemMutation, { data, loading, error }] = useDeleteTaskChecklistItemMutation({ * variables: { * taskChecklistItemID: // value for 'taskChecklistItemID' * }, * }); */ export function useDeleteTaskChecklistItemMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskChecklistItemDocument, options); } export type DeleteTaskChecklistItemMutationHookResult = ReturnType; export type DeleteTaskChecklistItemMutationResult = Apollo.MutationResult; export type DeleteTaskChecklistItemMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskCommentDocument = gql` mutation deleteTaskComment($commentID: UUID!) { deleteTaskComment(input: {commentID: $commentID}) { commentID } } `; export type DeleteTaskCommentMutationFn = Apollo.MutationFunction; /** * __useDeleteTaskCommentMutation__ * * To run a mutation, you first call `useDeleteTaskCommentMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskCommentMutation` 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 [deleteTaskCommentMutation, { data, loading, error }] = useDeleteTaskCommentMutation({ * variables: { * commentID: // value for 'commentID' * }, * }); */ export function useDeleteTaskCommentMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskCommentDocument, options); } export type DeleteTaskCommentMutationHookResult = ReturnType; export type DeleteTaskCommentMutationResult = Apollo.MutationResult; export type DeleteTaskCommentMutationOptions = Apollo.BaseMutationOptions; export const SetTaskChecklistItemCompleteDocument = gql` mutation setTaskChecklistItemComplete($taskChecklistItemID: UUID!, $complete: Boolean!) { setTaskChecklistItemComplete( input: {taskChecklistItemID: $taskChecklistItemID, complete: $complete} ) { id complete } } `; export type SetTaskChecklistItemCompleteMutationFn = Apollo.MutationFunction; /** * __useSetTaskChecklistItemCompleteMutation__ * * To run a mutation, you first call `useSetTaskChecklistItemCompleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSetTaskChecklistItemCompleteMutation` 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 [setTaskChecklistItemCompleteMutation, { data, loading, error }] = useSetTaskChecklistItemCompleteMutation({ * variables: { * taskChecklistItemID: // value for 'taskChecklistItemID' * complete: // value for 'complete' * }, * }); */ export function useSetTaskChecklistItemCompleteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SetTaskChecklistItemCompleteDocument, options); } export type SetTaskChecklistItemCompleteMutationHookResult = ReturnType; export type SetTaskChecklistItemCompleteMutationResult = Apollo.MutationResult; export type SetTaskChecklistItemCompleteMutationOptions = Apollo.BaseMutationOptions; export const SetTaskCompleteDocument = gql` mutation setTaskComplete($taskID: UUID!, $complete: Boolean!) { setTaskComplete(input: {taskID: $taskID, complete: $complete}) { ...TaskFields } } ${TaskFieldsFragmentDoc}`; export type SetTaskCompleteMutationFn = Apollo.MutationFunction; /** * __useSetTaskCompleteMutation__ * * To run a mutation, you first call `useSetTaskCompleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSetTaskCompleteMutation` 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 [setTaskCompleteMutation, { data, loading, error }] = useSetTaskCompleteMutation({ * variables: { * taskID: // value for 'taskID' * complete: // value for 'complete' * }, * }); */ export function useSetTaskCompleteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SetTaskCompleteDocument, options); } export type SetTaskCompleteMutationHookResult = ReturnType; export type SetTaskCompleteMutationResult = Apollo.MutationResult; export type SetTaskCompleteMutationOptions = Apollo.BaseMutationOptions; export const ToggleTaskWatchDocument = gql` mutation toggleTaskWatch($taskID: UUID!) { toggleTaskWatch(input: {taskID: $taskID}) { id watched } } `; export type ToggleTaskWatchMutationFn = Apollo.MutationFunction; /** * __useToggleTaskWatchMutation__ * * To run a mutation, you first call `useToggleTaskWatchMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useToggleTaskWatchMutation` 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 [toggleTaskWatchMutation, { data, loading, error }] = useToggleTaskWatchMutation({ * variables: { * taskID: // value for 'taskID' * }, * }); */ export function useToggleTaskWatchMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ToggleTaskWatchDocument, options); } export type ToggleTaskWatchMutationHookResult = ReturnType; export type ToggleTaskWatchMutationResult = Apollo.MutationResult; export type ToggleTaskWatchMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskChecklistItemLocationDocument = gql` mutation updateTaskChecklistItemLocation($taskChecklistID: UUID!, $taskChecklistItemID: UUID!, $position: Float!) { updateTaskChecklistItemLocation( input: {taskChecklistID: $taskChecklistID, taskChecklistItemID: $taskChecklistItemID, position: $position} ) { taskChecklistID prevChecklistID checklistItem { id taskChecklistID position } } } `; export type UpdateTaskChecklistItemLocationMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskChecklistItemLocationMutation__ * * To run a mutation, you first call `useUpdateTaskChecklistItemLocationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskChecklistItemLocationMutation` 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 [updateTaskChecklistItemLocationMutation, { data, loading, error }] = useUpdateTaskChecklistItemLocationMutation({ * variables: { * taskChecklistID: // value for 'taskChecklistID' * taskChecklistItemID: // value for 'taskChecklistItemID' * position: // value for 'position' * }, * }); */ export function useUpdateTaskChecklistItemLocationMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskChecklistItemLocationDocument, options); } export type UpdateTaskChecklistItemLocationMutationHookResult = ReturnType; export type UpdateTaskChecklistItemLocationMutationResult = Apollo.MutationResult; export type UpdateTaskChecklistItemLocationMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskChecklistItemNameDocument = gql` mutation updateTaskChecklistItemName($taskChecklistItemID: UUID!, $name: String!) { updateTaskChecklistItemName( input: {taskChecklistItemID: $taskChecklistItemID, name: $name} ) { id name } } `; export type UpdateTaskChecklistItemNameMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskChecklistItemNameMutation__ * * To run a mutation, you first call `useUpdateTaskChecklistItemNameMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskChecklistItemNameMutation` 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 [updateTaskChecklistItemNameMutation, { data, loading, error }] = useUpdateTaskChecklistItemNameMutation({ * variables: { * taskChecklistItemID: // value for 'taskChecklistItemID' * name: // value for 'name' * }, * }); */ export function useUpdateTaskChecklistItemNameMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskChecklistItemNameDocument, options); } export type UpdateTaskChecklistItemNameMutationHookResult = ReturnType; export type UpdateTaskChecklistItemNameMutationResult = Apollo.MutationResult; export type UpdateTaskChecklistItemNameMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskChecklistLocationDocument = gql` mutation updateTaskChecklistLocation($taskChecklistID: UUID!, $position: Float!) { updateTaskChecklistLocation( input: {taskChecklistID: $taskChecklistID, position: $position} ) { checklist { id position } } } `; export type UpdateTaskChecklistLocationMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskChecklistLocationMutation__ * * To run a mutation, you first call `useUpdateTaskChecklistLocationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskChecklistLocationMutation` 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 [updateTaskChecklistLocationMutation, { data, loading, error }] = useUpdateTaskChecklistLocationMutation({ * variables: { * taskChecklistID: // value for 'taskChecklistID' * position: // value for 'position' * }, * }); */ export function useUpdateTaskChecklistLocationMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskChecklistLocationDocument, options); } export type UpdateTaskChecklistLocationMutationHookResult = ReturnType; export type UpdateTaskChecklistLocationMutationResult = Apollo.MutationResult; export type UpdateTaskChecklistLocationMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskChecklistNameDocument = gql` mutation updateTaskChecklistName($taskChecklistID: UUID!, $name: String!) { updateTaskChecklistName(input: {taskChecklistID: $taskChecklistID, name: $name}) { id name position items { id name taskChecklistID complete position } } } `; export type UpdateTaskChecklistNameMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskChecklistNameMutation__ * * To run a mutation, you first call `useUpdateTaskChecklistNameMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskChecklistNameMutation` 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 [updateTaskChecklistNameMutation, { data, loading, error }] = useUpdateTaskChecklistNameMutation({ * variables: { * taskChecklistID: // value for 'taskChecklistID' * name: // value for 'name' * }, * }); */ export function useUpdateTaskChecklistNameMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskChecklistNameDocument, options); } export type UpdateTaskChecklistNameMutationHookResult = ReturnType; export type UpdateTaskChecklistNameMutationResult = Apollo.MutationResult; export type UpdateTaskChecklistNameMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskCommentDocument = gql` mutation updateTaskComment($commentID: UUID!, $message: String!) { updateTaskComment(input: {commentID: $commentID, message: $message}) { comment { id updatedAt message } } } `; export type UpdateTaskCommentMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskCommentMutation__ * * To run a mutation, you first call `useUpdateTaskCommentMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskCommentMutation` 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 [updateTaskCommentMutation, { data, loading, error }] = useUpdateTaskCommentMutation({ * variables: { * commentID: // value for 'commentID' * message: // value for 'message' * }, * }); */ export function useUpdateTaskCommentMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskCommentDocument, options); } export type UpdateTaskCommentMutationHookResult = ReturnType; export type UpdateTaskCommentMutationResult = Apollo.MutationResult; export type UpdateTaskCommentMutationOptions = Apollo.BaseMutationOptions; export const DeleteTaskGroupTasksDocument = gql` mutation deleteTaskGroupTasks($taskGroupID: UUID!) { deleteTaskGroupTasks(input: {taskGroupID: $taskGroupID}) { tasks taskGroupID } } `; export type DeleteTaskGroupTasksMutationFn = Apollo.MutationFunction; /** * __useDeleteTaskGroupTasksMutation__ * * To run a mutation, you first call `useDeleteTaskGroupTasksMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTaskGroupTasksMutation` 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 [deleteTaskGroupTasksMutation, { data, loading, error }] = useDeleteTaskGroupTasksMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * }, * }); */ export function useDeleteTaskGroupTasksMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTaskGroupTasksDocument, options); } export type DeleteTaskGroupTasksMutationHookResult = ReturnType; export type DeleteTaskGroupTasksMutationResult = Apollo.MutationResult; export type DeleteTaskGroupTasksMutationOptions = Apollo.BaseMutationOptions; export const DuplicateTaskGroupDocument = gql` mutation duplicateTaskGroup($taskGroupID: UUID!, $name: String!, $position: Float!, $projectID: UUID!) { duplicateTaskGroup( input: {projectID: $projectID, taskGroupID: $taskGroupID, name: $name, position: $position} ) { taskGroup { id name position tasks { ...TaskFields } } } } ${TaskFieldsFragmentDoc}`; export type DuplicateTaskGroupMutationFn = Apollo.MutationFunction; /** * __useDuplicateTaskGroupMutation__ * * To run a mutation, you first call `useDuplicateTaskGroupMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDuplicateTaskGroupMutation` 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 [duplicateTaskGroupMutation, { data, loading, error }] = useDuplicateTaskGroupMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * name: // value for 'name' * position: // value for 'position' * projectID: // value for 'projectID' * }, * }); */ export function useDuplicateTaskGroupMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DuplicateTaskGroupDocument, options); } export type DuplicateTaskGroupMutationHookResult = ReturnType; export type DuplicateTaskGroupMutationResult = Apollo.MutationResult; export type DuplicateTaskGroupMutationOptions = Apollo.BaseMutationOptions; export const SortTaskGroupDocument = gql` mutation sortTaskGroup($tasks: [TaskPositionUpdate!]!, $taskGroupID: UUID!) { sortTaskGroup(input: {taskGroupID: $taskGroupID, tasks: $tasks}) { taskGroupID tasks { id position } } } `; export type SortTaskGroupMutationFn = Apollo.MutationFunction; /** * __useSortTaskGroupMutation__ * * To run a mutation, you first call `useSortTaskGroupMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSortTaskGroupMutation` 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 [sortTaskGroupMutation, { data, loading, error }] = useSortTaskGroupMutation({ * variables: { * tasks: // value for 'tasks' * taskGroupID: // value for 'taskGroupID' * }, * }); */ export function useSortTaskGroupMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SortTaskGroupDocument, options); } export type SortTaskGroupMutationHookResult = ReturnType; export type SortTaskGroupMutationResult = Apollo.MutationResult; export type SortTaskGroupMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskGroupNameDocument = gql` mutation updateTaskGroupName($taskGroupID: UUID!, $name: String!) { updateTaskGroupName(input: {taskGroupID: $taskGroupID, name: $name}) { id name } } `; export type UpdateTaskGroupNameMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskGroupNameMutation__ * * To run a mutation, you first call `useUpdateTaskGroupNameMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskGroupNameMutation` 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 [updateTaskGroupNameMutation, { data, loading, error }] = useUpdateTaskGroupNameMutation({ * variables: { * taskGroupID: // value for 'taskGroupID' * name: // value for 'name' * }, * }); */ export function useUpdateTaskGroupNameMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskGroupNameDocument, options); } export type UpdateTaskGroupNameMutationHookResult = ReturnType; export type UpdateTaskGroupNameMutationResult = Apollo.MutationResult; export type UpdateTaskGroupNameMutationOptions = Apollo.BaseMutationOptions; export const CreateTeamDocument = gql` mutation createTeam($name: String!, $organizationID: UUID!) { createTeam(input: {name: $name, organizationID: $organizationID}) { id createdAt name } } `; export type CreateTeamMutationFn = Apollo.MutationFunction; /** * __useCreateTeamMutation__ * * To run a mutation, you first call `useCreateTeamMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTeamMutation` 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 [createTeamMutation, { data, loading, error }] = useCreateTeamMutation({ * variables: { * name: // value for 'name' * organizationID: // value for 'organizationID' * }, * }); */ export function useCreateTeamMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTeamDocument, options); } export type CreateTeamMutationHookResult = ReturnType; export type CreateTeamMutationResult = Apollo.MutationResult; export type CreateTeamMutationOptions = Apollo.BaseMutationOptions; export const CreateTeamMemberDocument = gql` mutation createTeamMember($userID: UUID!, $teamID: UUID!) { createTeamMember(input: {userID: $userID, teamID: $teamID}) { team { id } teamMember { id username fullName role { code name } profileIcon { url initials bgColor } } } } `; export type CreateTeamMemberMutationFn = Apollo.MutationFunction; /** * __useCreateTeamMemberMutation__ * * To run a mutation, you first call `useCreateTeamMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateTeamMemberMutation` 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 [createTeamMemberMutation, { data, loading, error }] = useCreateTeamMemberMutation({ * variables: { * userID: // value for 'userID' * teamID: // value for 'teamID' * }, * }); */ export function useCreateTeamMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateTeamMemberDocument, options); } export type CreateTeamMemberMutationHookResult = ReturnType; export type CreateTeamMemberMutationResult = Apollo.MutationResult; export type CreateTeamMemberMutationOptions = Apollo.BaseMutationOptions; export const DeleteTeamDocument = gql` mutation deleteTeam($teamID: UUID!) { deleteTeam(input: {teamID: $teamID}) { ok team { id } } } `; export type DeleteTeamMutationFn = Apollo.MutationFunction; /** * __useDeleteTeamMutation__ * * To run a mutation, you first call `useDeleteTeamMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTeamMutation` 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 [deleteTeamMutation, { data, loading, error }] = useDeleteTeamMutation({ * variables: { * teamID: // value for 'teamID' * }, * }); */ export function useDeleteTeamMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTeamDocument, options); } export type DeleteTeamMutationHookResult = ReturnType; export type DeleteTeamMutationResult = Apollo.MutationResult; export type DeleteTeamMutationOptions = Apollo.BaseMutationOptions; export const DeleteTeamMemberDocument = gql` mutation deleteTeamMember($teamID: UUID!, $userID: UUID!, $newOwnerID: UUID) { deleteTeamMember( input: {teamID: $teamID, userID: $userID, newOwnerID: $newOwnerID} ) { teamID userID } } `; export type DeleteTeamMemberMutationFn = Apollo.MutationFunction; /** * __useDeleteTeamMemberMutation__ * * To run a mutation, you first call `useDeleteTeamMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteTeamMemberMutation` 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 [deleteTeamMemberMutation, { data, loading, error }] = useDeleteTeamMemberMutation({ * variables: { * teamID: // value for 'teamID' * userID: // value for 'userID' * newOwnerID: // value for 'newOwnerID' * }, * }); */ export function useDeleteTeamMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteTeamMemberDocument, options); } export type DeleteTeamMemberMutationHookResult = ReturnType; export type DeleteTeamMemberMutationResult = Apollo.MutationResult; export type DeleteTeamMemberMutationOptions = Apollo.BaseMutationOptions; export const GetTeamDocument = gql` query getTeam($teamID: UUID!) { findTeam(input: {teamID: $teamID}) { id createdAt name members { id fullName username role { code name } profileIcon { url initials bgColor } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } projects(input: {teamID: $teamID}) { id name team { id name } } users { id email fullName username role { code name } profileIcon { url initials bgColor } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } `; /** * __useGetTeamQuery__ * * To run a query within a React component, call `useGetTeamQuery` and pass it any options that fit your needs. * When your component renders, `useGetTeamQuery` 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 } = useGetTeamQuery({ * variables: { * teamID: // value for 'teamID' * }, * }); */ export function useGetTeamQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetTeamDocument, options); } export function useGetTeamLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetTeamDocument, options); } export type GetTeamQueryHookResult = ReturnType; export type GetTeamLazyQueryHookResult = ReturnType; export type GetTeamQueryResult = Apollo.QueryResult; export const UpdateTeamMemberRoleDocument = gql` mutation updateTeamMemberRole($teamID: UUID!, $userID: UUID!, $roleCode: RoleCode!) { updateTeamMemberRole( input: {teamID: $teamID, userID: $userID, roleCode: $roleCode} ) { member { id role { code name } } teamID } } `; export type UpdateTeamMemberRoleMutationFn = Apollo.MutationFunction; /** * __useUpdateTeamMemberRoleMutation__ * * To run a mutation, you first call `useUpdateTeamMemberRoleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTeamMemberRoleMutation` 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 [updateTeamMemberRoleMutation, { data, loading, error }] = useUpdateTeamMemberRoleMutation({ * variables: { * teamID: // value for 'teamID' * userID: // value for 'userID' * roleCode: // value for 'roleCode' * }, * }); */ export function useUpdateTeamMemberRoleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTeamMemberRoleDocument, options); } export type UpdateTeamMemberRoleMutationHookResult = ReturnType; export type UpdateTeamMemberRoleMutationResult = Apollo.MutationResult; export type UpdateTeamMemberRoleMutationOptions = Apollo.BaseMutationOptions; export const ToggleProjectVisibilityDocument = gql` mutation toggleProjectVisibility($projectID: UUID!, $isPublic: Boolean!) { toggleProjectVisibility(input: {projectID: $projectID, isPublic: $isPublic}) { project { id publicOn } } } `; export type ToggleProjectVisibilityMutationFn = Apollo.MutationFunction; /** * __useToggleProjectVisibilityMutation__ * * To run a mutation, you first call `useToggleProjectVisibilityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useToggleProjectVisibilityMutation` 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 [toggleProjectVisibilityMutation, { data, loading, error }] = useToggleProjectVisibilityMutation({ * variables: { * projectID: // value for 'projectID' * isPublic: // value for 'isPublic' * }, * }); */ export function useToggleProjectVisibilityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ToggleProjectVisibilityDocument, options); } export type ToggleProjectVisibilityMutationHookResult = ReturnType; export type ToggleProjectVisibilityMutationResult = Apollo.MutationResult; export type ToggleProjectVisibilityMutationOptions = Apollo.BaseMutationOptions; 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 = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ToggleTaskLabelDocument, options); } export type ToggleTaskLabelMutationHookResult = ReturnType; export type ToggleTaskLabelMutationResult = Apollo.MutationResult; export type ToggleTaskLabelMutationOptions = Apollo.BaseMutationOptions; export const TopNavbarDocument = gql` query topNavbar { notifications { id read readAt notification { id actionType causedBy { username fullname id } createdAt } } me { user { id fullName profileIcon { initials bgColor url } } teamRoles { teamID roleCode } projectRoles { projectID roleCode } } } `; /** * __useTopNavbarQuery__ * * To run a query within a React component, call `useTopNavbarQuery` and pass it any options that fit your needs. * When your component renders, `useTopNavbarQuery` 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 } = useTopNavbarQuery({ * variables: { * }, * }); */ export function useTopNavbarQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(TopNavbarDocument, options); } export function useTopNavbarLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(TopNavbarDocument, options); } export type TopNavbarQueryHookResult = ReturnType; export type TopNavbarLazyQueryHookResult = ReturnType; export type TopNavbarQueryResult = Apollo.QueryResult; export const UnassignTaskDocument = gql` mutation unassignTask($taskID: UUID!, $userID: UUID!) { unassignTask(input: {taskID: $taskID, userID: $userID}) { assigned { id fullName } id } } `; export type UnassignTaskMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UnassignTaskDocument, options); } export type UnassignTaskMutationHookResult = ReturnType; export type UnassignTaskMutationResult = Apollo.MutationResult; export type UnassignTaskMutationOptions = Apollo.BaseMutationOptions; export const HasUnreadNotificationsDocument = gql` query hasUnreadNotifications { hasUnreadNotifications { unread } } `; /** * __useHasUnreadNotificationsQuery__ * * To run a query within a React component, call `useHasUnreadNotificationsQuery` and pass it any options that fit your needs. * When your component renders, `useHasUnreadNotificationsQuery` 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 } = useHasUnreadNotificationsQuery({ * variables: { * }, * }); */ export function useHasUnreadNotificationsQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(HasUnreadNotificationsDocument, options); } export function useHasUnreadNotificationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(HasUnreadNotificationsDocument, options); } export type HasUnreadNotificationsQueryHookResult = ReturnType; export type HasUnreadNotificationsLazyQueryHookResult = ReturnType; export type HasUnreadNotificationsQueryResult = Apollo.QueryResult; 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 = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateProjectLabelDocument, options); } export type UpdateProjectLabelMutationHookResult = ReturnType; export type UpdateProjectLabelMutationResult = Apollo.MutationResult; export type UpdateProjectLabelMutationOptions = Apollo.BaseMutationOptions; export const UpdateProjectNameDocument = gql` mutation updateProjectName($projectID: UUID!, $name: String!) { updateProjectName(input: {projectID: $projectID, name: $name}) { id name } } `; export type UpdateProjectNameMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateProjectNameDocument, options); } export type UpdateProjectNameMutationHookResult = ReturnType; export type UpdateProjectNameMutationResult = Apollo.MutationResult; export type UpdateProjectNameMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskDescriptionDocument = gql` mutation updateTaskDescription($taskID: UUID!, $description: String!) { updateTaskDescription(input: {taskID: $taskID, description: $description}) { id description } } `; export type UpdateTaskDescriptionMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskDescriptionDocument, options); } export type UpdateTaskDescriptionMutationHookResult = ReturnType; export type UpdateTaskDescriptionMutationResult = Apollo.MutationResult; export type UpdateTaskDescriptionMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskDueDateDocument = gql` mutation updateTaskDueDate($taskID: UUID!, $dueDate: Time, $hasTime: Boolean!) { updateTaskDueDate( input: {taskID: $taskID, dueDate: $dueDate, hasTime: $hasTime} ) { id dueDate hasTime } } `; export type UpdateTaskDueDateMutationFn = Apollo.MutationFunction; /** * __useUpdateTaskDueDateMutation__ * * To run a mutation, you first call `useUpdateTaskDueDateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaskDueDateMutation` 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 [updateTaskDueDateMutation, { data, loading, error }] = useUpdateTaskDueDateMutation({ * variables: { * taskID: // value for 'taskID' * dueDate: // value for 'dueDate' * hasTime: // value for 'hasTime' * }, * }); */ export function useUpdateTaskDueDateMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskDueDateDocument, options); } export type UpdateTaskDueDateMutationHookResult = ReturnType; export type UpdateTaskDueDateMutationResult = Apollo.MutationResult; export type UpdateTaskDueDateMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskGroupLocationDocument = gql` mutation updateTaskGroupLocation($taskGroupID: UUID!, $position: Float!) { updateTaskGroupLocation(input: {taskGroupID: $taskGroupID, position: $position}) { id position } } `; export type UpdateTaskGroupLocationMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskGroupLocationDocument, options); } export type UpdateTaskGroupLocationMutationHookResult = ReturnType; export type UpdateTaskGroupLocationMutationResult = Apollo.MutationResult; export type UpdateTaskGroupLocationMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskLocationDocument = gql` mutation updateTaskLocation($taskID: UUID!, $taskGroupID: UUID!, $position: Float!) { updateTaskLocation( input: {taskID: $taskID, taskGroupID: $taskGroupID, position: $position} ) { previousTaskGroupID task { id createdAt name position taskGroup { id } } } } `; export type UpdateTaskLocationMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskLocationDocument, options); } export type UpdateTaskLocationMutationHookResult = ReturnType; export type UpdateTaskLocationMutationResult = Apollo.MutationResult; export type UpdateTaskLocationMutationOptions = Apollo.BaseMutationOptions; export const UpdateTaskNameDocument = gql` mutation updateTaskName($taskID: UUID!, $name: String!) { updateTaskName(input: {taskID: $taskID, name: $name}) { id name position } } `; export type UpdateTaskNameMutationFn = Apollo.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?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateTaskNameDocument, options); } export type UpdateTaskNameMutationHookResult = ReturnType; export type UpdateTaskNameMutationResult = Apollo.MutationResult; export type UpdateTaskNameMutationOptions = Apollo.BaseMutationOptions; export const CreateUserAccountDocument = gql` mutation createUserAccount($username: String!, $roleCode: String!, $email: String!, $fullName: String!, $initials: String!, $password: String!) { createUserAccount( input: {roleCode: $roleCode, username: $username, email: $email, fullName: $fullName, initials: $initials, password: $password} ) { id email fullName initials username bio profileIcon { url initials bgColor } role { code name } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } `; export type CreateUserAccountMutationFn = Apollo.MutationFunction; /** * __useCreateUserAccountMutation__ * * To run a mutation, you first call `useCreateUserAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateUserAccountMutation` 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 [createUserAccountMutation, { data, loading, error }] = useCreateUserAccountMutation({ * variables: { * username: // value for 'username' * roleCode: // value for 'roleCode' * email: // value for 'email' * fullName: // value for 'fullName' * initials: // value for 'initials' * password: // value for 'password' * }, * }); */ export function useCreateUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateUserAccountDocument, options); } export type CreateUserAccountMutationHookResult = ReturnType; export type CreateUserAccountMutationResult = Apollo.MutationResult; export type CreateUserAccountMutationOptions = Apollo.BaseMutationOptions; export const DeleteInvitedUserAccountDocument = gql` mutation deleteInvitedUserAccount($invitedUserID: UUID!) { deleteInvitedUserAccount(input: {invitedUserID: $invitedUserID}) { invitedUser { id } } } `; export type DeleteInvitedUserAccountMutationFn = Apollo.MutationFunction; /** * __useDeleteInvitedUserAccountMutation__ * * To run a mutation, you first call `useDeleteInvitedUserAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteInvitedUserAccountMutation` 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 [deleteInvitedUserAccountMutation, { data, loading, error }] = useDeleteInvitedUserAccountMutation({ * variables: { * invitedUserID: // value for 'invitedUserID' * }, * }); */ export function useDeleteInvitedUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteInvitedUserAccountDocument, options); } export type DeleteInvitedUserAccountMutationHookResult = ReturnType; export type DeleteInvitedUserAccountMutationResult = Apollo.MutationResult; export type DeleteInvitedUserAccountMutationOptions = Apollo.BaseMutationOptions; export const DeleteUserAccountDocument = gql` mutation deleteUserAccount($userID: UUID!, $newOwnerID: UUID) { deleteUserAccount(input: {userID: $userID, newOwnerID: $newOwnerID}) { ok userAccount { id } } } `; export type DeleteUserAccountMutationFn = Apollo.MutationFunction; /** * __useDeleteUserAccountMutation__ * * To run a mutation, you first call `useDeleteUserAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteUserAccountMutation` 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 [deleteUserAccountMutation, { data, loading, error }] = useDeleteUserAccountMutation({ * variables: { * userID: // value for 'userID' * newOwnerID: // value for 'newOwnerID' * }, * }); */ export function useDeleteUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteUserAccountDocument, options); } export type DeleteUserAccountMutationHookResult = ReturnType; export type DeleteUserAccountMutationResult = Apollo.MutationResult; export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions; export const UpdateUserInfoDocument = gql` mutation updateUserInfo($name: String!, $initials: String!, $email: String!, $bio: String!) { updateUserInfo( input: {name: $name, initials: $initials, email: $email, bio: $bio} ) { user { id email fullName bio profileIcon { initials } } } } `; export type UpdateUserInfoMutationFn = Apollo.MutationFunction; /** * __useUpdateUserInfoMutation__ * * To run a mutation, you first call `useUpdateUserInfoMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateUserInfoMutation` 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 [updateUserInfoMutation, { data, loading, error }] = useUpdateUserInfoMutation({ * variables: { * name: // value for 'name' * initials: // value for 'initials' * email: // value for 'email' * bio: // value for 'bio' * }, * }); */ export function useUpdateUserInfoMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateUserInfoDocument, options); } export type UpdateUserInfoMutationHookResult = ReturnType; export type UpdateUserInfoMutationResult = Apollo.MutationResult; export type UpdateUserInfoMutationOptions = Apollo.BaseMutationOptions; export const UpdateUserPasswordDocument = gql` mutation updateUserPassword($userID: UUID!, $password: String!) { updateUserPassword(input: {userID: $userID, password: $password}) { ok } } `; export type UpdateUserPasswordMutationFn = Apollo.MutationFunction; /** * __useUpdateUserPasswordMutation__ * * To run a mutation, you first call `useUpdateUserPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateUserPasswordMutation` 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 [updateUserPasswordMutation, { data, loading, error }] = useUpdateUserPasswordMutation({ * variables: { * userID: // value for 'userID' * password: // value for 'password' * }, * }); */ export function useUpdateUserPasswordMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateUserPasswordDocument, options); } export type UpdateUserPasswordMutationHookResult = ReturnType; export type UpdateUserPasswordMutationResult = Apollo.MutationResult; export type UpdateUserPasswordMutationOptions = Apollo.BaseMutationOptions; export const UpdateUserRoleDocument = gql` mutation updateUserRole($userID: UUID!, $roleCode: RoleCode!) { updateUserRole(input: {userID: $userID, roleCode: $roleCode}) { user { id role { code name } } } } `; export type UpdateUserRoleMutationFn = Apollo.MutationFunction; /** * __useUpdateUserRoleMutation__ * * To run a mutation, you first call `useUpdateUserRoleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateUserRoleMutation` 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 [updateUserRoleMutation, { data, loading, error }] = useUpdateUserRoleMutation({ * variables: { * userID: // value for 'userID' * roleCode: // value for 'roleCode' * }, * }); */ export function useUpdateUserRoleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateUserRoleDocument, options); } export type UpdateUserRoleMutationHookResult = ReturnType; export type UpdateUserRoleMutationResult = Apollo.MutationResult; export type UpdateUserRoleMutationOptions = Apollo.BaseMutationOptions; export const UsersDocument = gql` query users { invitedUsers { id email invitedOn } users { id email fullName username role { code name } profileIcon { url initials bgColor } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } `; /** * __useUsersQuery__ * * To run a query within a React component, call `useUsersQuery` and pass it any options that fit your needs. * When your component renders, `useUsersQuery` 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 } = useUsersQuery({ * variables: { * }, * }); */ export function useUsersQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(UsersDocument, options); } export function useUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(UsersDocument, options); } export type UsersQueryHookResult = ReturnType; export type UsersLazyQueryHookResult = ReturnType; export type UsersQueryResult = Apollo.QueryResult;