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