cleanup(prettier): run prettier across all ts/tsx files
This commit is contained in:
parent
90f22d322e
commit
dc4792f7c2
@ -38,4 +38,3 @@ export const Default = () => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,4 +26,3 @@ export const Default = () => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,10 +13,8 @@ export type Scalars = {
|
|||||||
UUID: string;
|
UUID: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type RefreshToken = {
|
export type RefreshToken = {
|
||||||
__typename?: 'RefreshToken';
|
__typename?: 'RefreshToken';
|
||||||
tokenId: Scalars['ID'];
|
tokenId: Scalars['ID'];
|
||||||
userId: Scalars['UUID'];
|
userId: Scalars['UUID'];
|
||||||
expiresAt: Scalars['Time'];
|
expiresAt: Scalars['Time'];
|
||||||
@ -24,7 +22,7 @@ export type RefreshToken = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type UserAccount = {
|
export type UserAccount = {
|
||||||
__typename?: 'UserAccount';
|
__typename?: 'UserAccount';
|
||||||
userID: Scalars['ID'];
|
userID: Scalars['ID'];
|
||||||
email: Scalars['String'];
|
email: Scalars['String'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
@ -33,7 +31,7 @@ export type UserAccount = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Organization = {
|
export type Organization = {
|
||||||
__typename?: 'Organization';
|
__typename?: 'Organization';
|
||||||
organizationID: Scalars['ID'];
|
organizationID: Scalars['ID'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
name: Scalars['String'];
|
name: Scalars['String'];
|
||||||
@ -41,7 +39,7 @@ export type Organization = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Team = {
|
export type Team = {
|
||||||
__typename?: 'Team';
|
__typename?: 'Team';
|
||||||
teamID: Scalars['ID'];
|
teamID: Scalars['ID'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
name: Scalars['String'];
|
name: Scalars['String'];
|
||||||
@ -49,7 +47,7 @@ export type Team = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Project = {
|
export type Project = {
|
||||||
__typename?: 'Project';
|
__typename?: 'Project';
|
||||||
projectID: Scalars['ID'];
|
projectID: Scalars['ID'];
|
||||||
teamID: Scalars['String'];
|
teamID: Scalars['String'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
@ -58,7 +56,7 @@ export type Project = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type TaskGroup = {
|
export type TaskGroup = {
|
||||||
__typename?: 'TaskGroup';
|
__typename?: 'TaskGroup';
|
||||||
taskGroupID: Scalars['ID'];
|
taskGroupID: Scalars['ID'];
|
||||||
projectID: Scalars['String'];
|
projectID: Scalars['String'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
@ -68,7 +66,7 @@ export type TaskGroup = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Task = {
|
export type Task = {
|
||||||
__typename?: 'Task';
|
__typename?: 'Task';
|
||||||
taskID: Scalars['ID'];
|
taskID: Scalars['ID'];
|
||||||
taskGroupID: Scalars['String'];
|
taskGroupID: Scalars['String'];
|
||||||
createdAt: Scalars['Time'];
|
createdAt: Scalars['Time'];
|
||||||
@ -89,7 +87,7 @@ export type FindProject = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Query = {
|
export type Query = {
|
||||||
__typename?: 'Query';
|
__typename?: 'Query';
|
||||||
organizations: Array<Organization>;
|
organizations: Array<Organization>;
|
||||||
users: Array<UserAccount>;
|
users: Array<UserAccount>;
|
||||||
findUser: UserAccount;
|
findUser: UserAccount;
|
||||||
@ -99,17 +97,14 @@ export type Query = {
|
|||||||
taskGroups: Array<TaskGroup>;
|
taskGroups: Array<TaskGroup>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryFindUserArgs = {
|
export type QueryFindUserArgs = {
|
||||||
input: FindUser;
|
input: FindUser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryFindProjectArgs = {
|
export type QueryFindProjectArgs = {
|
||||||
input: FindProject;
|
input: FindProject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryProjectsArgs = {
|
export type QueryProjectsArgs = {
|
||||||
input?: Maybe<ProjectsFilter>;
|
input?: Maybe<ProjectsFilter>;
|
||||||
};
|
};
|
||||||
@ -166,7 +161,7 @@ export type DeleteTaskInput = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type DeleteTaskPayload = {
|
export type DeleteTaskPayload = {
|
||||||
__typename?: 'DeleteTaskPayload';
|
__typename?: 'DeleteTaskPayload';
|
||||||
taskID: Scalars['String'];
|
taskID: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -176,7 +171,7 @@ export type UpdateTaskName = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Mutation = {
|
export type Mutation = {
|
||||||
__typename?: 'Mutation';
|
__typename?: 'Mutation';
|
||||||
createRefreshToken: RefreshToken;
|
createRefreshToken: RefreshToken;
|
||||||
createUserAccount: UserAccount;
|
createUserAccount: UserAccount;
|
||||||
createOrganization: Organization;
|
createOrganization: Organization;
|
||||||
@ -190,57 +185,46 @@ export type Mutation = {
|
|||||||
deleteTask: DeleteTaskPayload;
|
deleteTask: DeleteTaskPayload;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateRefreshTokenArgs = {
|
export type MutationCreateRefreshTokenArgs = {
|
||||||
input: NewRefreshToken;
|
input: NewRefreshToken;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateUserAccountArgs = {
|
export type MutationCreateUserAccountArgs = {
|
||||||
input: NewUserAccount;
|
input: NewUserAccount;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateOrganizationArgs = {
|
export type MutationCreateOrganizationArgs = {
|
||||||
input: NewOrganization;
|
input: NewOrganization;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateTeamArgs = {
|
export type MutationCreateTeamArgs = {
|
||||||
input: NewTeam;
|
input: NewTeam;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateProjectArgs = {
|
export type MutationCreateProjectArgs = {
|
||||||
input: NewProject;
|
input: NewProject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateTaskGroupArgs = {
|
export type MutationCreateTaskGroupArgs = {
|
||||||
input: NewTaskGroup;
|
input: NewTaskGroup;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateTaskArgs = {
|
export type MutationCreateTaskArgs = {
|
||||||
input: NewTask;
|
input: NewTask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationUpdateTaskLocationArgs = {
|
export type MutationUpdateTaskLocationArgs = {
|
||||||
input: NewTaskLocation;
|
input: NewTaskLocation;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationLogoutUserArgs = {
|
export type MutationLogoutUserArgs = {
|
||||||
input: LogoutUser;
|
input: LogoutUser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationUpdateTaskNameArgs = {
|
export type MutationUpdateTaskNameArgs = {
|
||||||
input: UpdateTaskName;
|
input: UpdateTaskName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationDeleteTaskArgs = {
|
export type MutationDeleteTaskArgs = {
|
||||||
input: DeleteTaskInput;
|
input: DeleteTaskInput;
|
||||||
};
|
};
|
||||||
@ -251,67 +235,45 @@ export type CreateTaskMutationVariables = {
|
|||||||
position: Scalars['Float'];
|
position: Scalars['Float'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CreateTaskMutation = { __typename?: 'Mutation' } & {
|
||||||
export type CreateTaskMutation = (
|
createTask: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'taskGroupID' | 'name' | 'position'>;
|
||||||
{ __typename?: 'Mutation' }
|
};
|
||||||
& { createTask: (
|
|
||||||
{ __typename?: 'Task' }
|
|
||||||
& Pick<Task, 'taskID' | 'taskGroupID' | 'name' | 'position'>
|
|
||||||
) }
|
|
||||||
);
|
|
||||||
|
|
||||||
export type DeleteTaskMutationVariables = {
|
export type DeleteTaskMutationVariables = {
|
||||||
taskID: Scalars['String'];
|
taskID: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type DeleteTaskMutation = { __typename?: 'Mutation' } & {
|
||||||
export type DeleteTaskMutation = (
|
deleteTask: { __typename?: 'DeleteTaskPayload' } & Pick<DeleteTaskPayload, 'taskID'>;
|
||||||
{ __typename?: 'Mutation' }
|
};
|
||||||
& { deleteTask: (
|
|
||||||
{ __typename?: 'DeleteTaskPayload' }
|
|
||||||
& Pick<DeleteTaskPayload, 'taskID'>
|
|
||||||
) }
|
|
||||||
);
|
|
||||||
|
|
||||||
export type FindProjectQueryVariables = {
|
export type FindProjectQueryVariables = {
|
||||||
projectId: Scalars['String'];
|
projectId: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type FindProjectQuery = { __typename?: 'Query' } & {
|
||||||
export type FindProjectQuery = (
|
findProject: { __typename?: 'Project' } & Pick<Project, 'name'> & {
|
||||||
{ __typename?: 'Query' }
|
taskGroups: Array<
|
||||||
& { findProject: (
|
{ __typename?: 'TaskGroup' } & Pick<TaskGroup, 'taskGroupID' | 'name' | 'position'> & {
|
||||||
{ __typename?: 'Project' }
|
tasks: Array<{ __typename?: 'Task' } & Pick<Task, 'taskID' | 'name' | 'position'>>;
|
||||||
& Pick<Project, 'name'>
|
}
|
||||||
& { taskGroups: Array<(
|
>;
|
||||||
{ __typename?: 'TaskGroup' }
|
};
|
||||||
& Pick<TaskGroup, 'taskGroupID' | 'name' | 'position'>
|
};
|
||||||
& { tasks: Array<(
|
|
||||||
{ __typename?: 'Task' }
|
|
||||||
& Pick<Task, 'taskID' | 'name' | 'position'>
|
|
||||||
)> }
|
|
||||||
)> }
|
|
||||||
) }
|
|
||||||
);
|
|
||||||
|
|
||||||
export type GetProjectsQueryVariables = {};
|
export type GetProjectsQueryVariables = {};
|
||||||
|
|
||||||
|
export type GetProjectsQuery = { __typename?: 'Query' } & {
|
||||||
export type GetProjectsQuery = (
|
organizations: Array<
|
||||||
{ __typename?: 'Query' }
|
{ __typename?: 'Organization' } & Pick<Organization, 'name'> & {
|
||||||
& { organizations: Array<(
|
teams: Array<
|
||||||
{ __typename?: 'Organization' }
|
{ __typename?: 'Team' } & Pick<Team, 'name'> & {
|
||||||
& Pick<Organization, 'name'>
|
projects: Array<{ __typename?: 'Project' } & Pick<Project, 'name' | 'projectID'>>;
|
||||||
& { teams: Array<(
|
}
|
||||||
{ __typename?: 'Team' }
|
>;
|
||||||
& Pick<Team, 'name'>
|
}
|
||||||
& { projects: Array<(
|
>;
|
||||||
{ __typename?: 'Project' }
|
};
|
||||||
& Pick<Project, 'name' | 'projectID'>
|
|
||||||
)> }
|
|
||||||
)> }
|
|
||||||
)> }
|
|
||||||
);
|
|
||||||
|
|
||||||
export type UpdateTaskLocationMutationVariables = {
|
export type UpdateTaskLocationMutationVariables = {
|
||||||
taskID: Scalars['String'];
|
taskID: Scalars['String'];
|
||||||
@ -319,40 +281,29 @@ export type UpdateTaskLocationMutationVariables = {
|
|||||||
position: Scalars['Float'];
|
position: Scalars['Float'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UpdateTaskLocationMutation = { __typename?: 'Mutation' } & {
|
||||||
export type UpdateTaskLocationMutation = (
|
updateTaskLocation: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'createdAt' | 'name' | 'position'>;
|
||||||
{ __typename?: 'Mutation' }
|
};
|
||||||
& { updateTaskLocation: (
|
|
||||||
{ __typename?: 'Task' }
|
|
||||||
& Pick<Task, 'taskID' | 'createdAt' | 'name' | 'position'>
|
|
||||||
) }
|
|
||||||
);
|
|
||||||
|
|
||||||
export type UpdateTaskNameMutationVariables = {
|
export type UpdateTaskNameMutationVariables = {
|
||||||
taskID: Scalars['String'];
|
taskID: Scalars['String'];
|
||||||
name: Scalars['String'];
|
name: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UpdateTaskNameMutation = { __typename?: 'Mutation' } & {
|
||||||
export type UpdateTaskNameMutation = (
|
updateTaskName: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'name' | 'position'>;
|
||||||
{ __typename?: 'Mutation' }
|
};
|
||||||
& { updateTaskName: (
|
|
||||||
{ __typename?: 'Task' }
|
|
||||||
& Pick<Task, 'taskID' | 'name' | 'position'>
|
|
||||||
) }
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
export const CreateTaskDocument = gql`
|
export const CreateTaskDocument = gql`
|
||||||
mutation createTask($taskGroupID: String!, $name: String!, $position: Float!) {
|
mutation createTask($taskGroupID: String!, $name: String!, $position: Float!) {
|
||||||
createTask(input: {taskGroupID: $taskGroupID, name: $name, position: $position}) {
|
createTask(input: { taskGroupID: $taskGroupID, name: $name, position: $position }) {
|
||||||
taskID
|
taskID
|
||||||
taskGroupID
|
taskGroupID
|
||||||
name
|
name
|
||||||
position
|
position
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
|
||||||
export type CreateTaskMutationFn = ApolloReactCommon.MutationFunction<CreateTaskMutation, CreateTaskMutationVariables>;
|
export type CreateTaskMutationFn = ApolloReactCommon.MutationFunction<CreateTaskMutation, CreateTaskMutationVariables>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -374,19 +325,24 @@ export type CreateTaskMutationFn = ApolloReactCommon.MutationFunction<CreateTask
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useCreateTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<CreateTaskMutation, CreateTaskMutationVariables>) {
|
export function useCreateTaskMutation(
|
||||||
return ApolloReactHooks.useMutation<CreateTaskMutation, CreateTaskMutationVariables>(CreateTaskDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.MutationHookOptions<CreateTaskMutation, CreateTaskMutationVariables>,
|
||||||
}
|
) {
|
||||||
|
return ApolloReactHooks.useMutation<CreateTaskMutation, CreateTaskMutationVariables>(CreateTaskDocument, baseOptions);
|
||||||
|
}
|
||||||
export type CreateTaskMutationHookResult = ReturnType<typeof useCreateTaskMutation>;
|
export type CreateTaskMutationHookResult = ReturnType<typeof useCreateTaskMutation>;
|
||||||
export type CreateTaskMutationResult = ApolloReactCommon.MutationResult<CreateTaskMutation>;
|
export type CreateTaskMutationResult = ApolloReactCommon.MutationResult<CreateTaskMutation>;
|
||||||
export type CreateTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<CreateTaskMutation, CreateTaskMutationVariables>;
|
export type CreateTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||||
|
CreateTaskMutation,
|
||||||
|
CreateTaskMutationVariables
|
||||||
|
>;
|
||||||
export const DeleteTaskDocument = gql`
|
export const DeleteTaskDocument = gql`
|
||||||
mutation deleteTask($taskID: String!) {
|
mutation deleteTask($taskID: String!) {
|
||||||
deleteTask(input: {taskID: $taskID}) {
|
deleteTask(input: { taskID: $taskID }) {
|
||||||
taskID
|
taskID
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
|
||||||
export type DeleteTaskMutationFn = ApolloReactCommon.MutationFunction<DeleteTaskMutation, DeleteTaskMutationVariables>;
|
export type DeleteTaskMutationFn = ApolloReactCommon.MutationFunction<DeleteTaskMutation, DeleteTaskMutationVariables>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -406,29 +362,34 @@ export type DeleteTaskMutationFn = ApolloReactCommon.MutationFunction<DeleteTask
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useDeleteTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<DeleteTaskMutation, DeleteTaskMutationVariables>) {
|
export function useDeleteTaskMutation(
|
||||||
return ApolloReactHooks.useMutation<DeleteTaskMutation, DeleteTaskMutationVariables>(DeleteTaskDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.MutationHookOptions<DeleteTaskMutation, DeleteTaskMutationVariables>,
|
||||||
}
|
) {
|
||||||
|
return ApolloReactHooks.useMutation<DeleteTaskMutation, DeleteTaskMutationVariables>(DeleteTaskDocument, baseOptions);
|
||||||
|
}
|
||||||
export type DeleteTaskMutationHookResult = ReturnType<typeof useDeleteTaskMutation>;
|
export type DeleteTaskMutationHookResult = ReturnType<typeof useDeleteTaskMutation>;
|
||||||
export type DeleteTaskMutationResult = ApolloReactCommon.MutationResult<DeleteTaskMutation>;
|
export type DeleteTaskMutationResult = ApolloReactCommon.MutationResult<DeleteTaskMutation>;
|
||||||
export type DeleteTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<DeleteTaskMutation, DeleteTaskMutationVariables>;
|
export type DeleteTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||||
|
DeleteTaskMutation,
|
||||||
|
DeleteTaskMutationVariables
|
||||||
|
>;
|
||||||
export const FindProjectDocument = gql`
|
export const FindProjectDocument = gql`
|
||||||
query findProject($projectId: String!) {
|
query findProject($projectId: String!) {
|
||||||
findProject(input: {projectId: $projectId}) {
|
findProject(input: { projectId: $projectId }) {
|
||||||
name
|
|
||||||
taskGroups {
|
|
||||||
taskGroupID
|
|
||||||
name
|
name
|
||||||
position
|
taskGroups {
|
||||||
tasks {
|
taskGroupID
|
||||||
taskID
|
|
||||||
name
|
name
|
||||||
position
|
position
|
||||||
|
tasks {
|
||||||
|
taskID
|
||||||
|
name
|
||||||
|
position
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __useFindProjectQuery__
|
* __useFindProjectQuery__
|
||||||
@ -446,29 +407,33 @@ export const FindProjectDocument = gql`
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useFindProjectQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<FindProjectQuery, FindProjectQueryVariables>) {
|
export function useFindProjectQuery(
|
||||||
return ApolloReactHooks.useQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.QueryHookOptions<FindProjectQuery, FindProjectQueryVariables>,
|
||||||
}
|
) {
|
||||||
export function useFindProjectLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<FindProjectQuery, FindProjectQueryVariables>) {
|
return ApolloReactHooks.useQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
||||||
return ApolloReactHooks.useLazyQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
}
|
||||||
}
|
export function useFindProjectLazyQuery(
|
||||||
|
baseOptions?: ApolloReactHooks.LazyQueryHookOptions<FindProjectQuery, FindProjectQueryVariables>,
|
||||||
|
) {
|
||||||
|
return ApolloReactHooks.useLazyQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
||||||
|
}
|
||||||
export type FindProjectQueryHookResult = ReturnType<typeof useFindProjectQuery>;
|
export type FindProjectQueryHookResult = ReturnType<typeof useFindProjectQuery>;
|
||||||
export type FindProjectLazyQueryHookResult = ReturnType<typeof useFindProjectLazyQuery>;
|
export type FindProjectLazyQueryHookResult = ReturnType<typeof useFindProjectLazyQuery>;
|
||||||
export type FindProjectQueryResult = ApolloReactCommon.QueryResult<FindProjectQuery, FindProjectQueryVariables>;
|
export type FindProjectQueryResult = ApolloReactCommon.QueryResult<FindProjectQuery, FindProjectQueryVariables>;
|
||||||
export const GetProjectsDocument = gql`
|
export const GetProjectsDocument = gql`
|
||||||
query getProjects {
|
query getProjects {
|
||||||
organizations {
|
organizations {
|
||||||
name
|
|
||||||
teams {
|
|
||||||
name
|
name
|
||||||
projects {
|
teams {
|
||||||
name
|
name
|
||||||
projectID
|
projects {
|
||||||
|
name
|
||||||
|
projectID
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __useGetProjectsQuery__
|
* __useGetProjectsQuery__
|
||||||
@ -485,26 +450,33 @@ export const GetProjectsDocument = gql`
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useGetProjectsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>) {
|
export function useGetProjectsQuery(
|
||||||
return ApolloReactHooks.useQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.QueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>,
|
||||||
}
|
) {
|
||||||
export function useGetProjectsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>) {
|
return ApolloReactHooks.useQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
||||||
return ApolloReactHooks.useLazyQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
}
|
||||||
}
|
export function useGetProjectsLazyQuery(
|
||||||
|
baseOptions?: ApolloReactHooks.LazyQueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>,
|
||||||
|
) {
|
||||||
|
return ApolloReactHooks.useLazyQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
||||||
|
}
|
||||||
export type GetProjectsQueryHookResult = ReturnType<typeof useGetProjectsQuery>;
|
export type GetProjectsQueryHookResult = ReturnType<typeof useGetProjectsQuery>;
|
||||||
export type GetProjectsLazyQueryHookResult = ReturnType<typeof useGetProjectsLazyQuery>;
|
export type GetProjectsLazyQueryHookResult = ReturnType<typeof useGetProjectsLazyQuery>;
|
||||||
export type GetProjectsQueryResult = ApolloReactCommon.QueryResult<GetProjectsQuery, GetProjectsQueryVariables>;
|
export type GetProjectsQueryResult = ApolloReactCommon.QueryResult<GetProjectsQuery, GetProjectsQueryVariables>;
|
||||||
export const UpdateTaskLocationDocument = gql`
|
export const UpdateTaskLocationDocument = gql`
|
||||||
mutation updateTaskLocation($taskID: String!, $taskGroupID: String!, $position: Float!) {
|
mutation updateTaskLocation($taskID: String!, $taskGroupID: String!, $position: Float!) {
|
||||||
updateTaskLocation(input: {taskID: $taskID, taskGroupID: $taskGroupID, position: $position}) {
|
updateTaskLocation(input: { taskID: $taskID, taskGroupID: $taskGroupID, position: $position }) {
|
||||||
taskID
|
taskID
|
||||||
createdAt
|
createdAt
|
||||||
name
|
name
|
||||||
position
|
position
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<
|
||||||
export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>;
|
UpdateTaskLocationMutation,
|
||||||
|
UpdateTaskLocationMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __useUpdateTaskLocationMutation__
|
* __useUpdateTaskLocationMutation__
|
||||||
@ -525,22 +497,33 @@ export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<Up
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useUpdateTaskLocationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>) {
|
export function useUpdateTaskLocationMutation(
|
||||||
return ApolloReactHooks.useMutation<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>(UpdateTaskLocationDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>,
|
||||||
}
|
) {
|
||||||
|
return ApolloReactHooks.useMutation<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>(
|
||||||
|
UpdateTaskLocationDocument,
|
||||||
|
baseOptions,
|
||||||
|
);
|
||||||
|
}
|
||||||
export type UpdateTaskLocationMutationHookResult = ReturnType<typeof useUpdateTaskLocationMutation>;
|
export type UpdateTaskLocationMutationHookResult = ReturnType<typeof useUpdateTaskLocationMutation>;
|
||||||
export type UpdateTaskLocationMutationResult = ApolloReactCommon.MutationResult<UpdateTaskLocationMutation>;
|
export type UpdateTaskLocationMutationResult = ApolloReactCommon.MutationResult<UpdateTaskLocationMutation>;
|
||||||
export type UpdateTaskLocationMutationOptions = ApolloReactCommon.BaseMutationOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>;
|
export type UpdateTaskLocationMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||||
|
UpdateTaskLocationMutation,
|
||||||
|
UpdateTaskLocationMutationVariables
|
||||||
|
>;
|
||||||
export const UpdateTaskNameDocument = gql`
|
export const UpdateTaskNameDocument = gql`
|
||||||
mutation updateTaskName($taskID: String!, $name: String!) {
|
mutation updateTaskName($taskID: String!, $name: String!) {
|
||||||
updateTaskName(input: {taskID: $taskID, name: $name}) {
|
updateTaskName(input: { taskID: $taskID, name: $name }) {
|
||||||
taskID
|
taskID
|
||||||
name
|
name
|
||||||
position
|
position
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`;
|
export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<
|
||||||
export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>;
|
UpdateTaskNameMutation,
|
||||||
|
UpdateTaskNameMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __useUpdateTaskNameMutation__
|
* __useUpdateTaskNameMutation__
|
||||||
@ -560,9 +543,17 @@ export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<Update
|
|||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useUpdateTaskNameMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>) {
|
export function useUpdateTaskNameMutation(
|
||||||
return ApolloReactHooks.useMutation<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>(UpdateTaskNameDocument, baseOptions);
|
baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>,
|
||||||
}
|
) {
|
||||||
|
return ApolloReactHooks.useMutation<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>(
|
||||||
|
UpdateTaskNameDocument,
|
||||||
|
baseOptions,
|
||||||
|
);
|
||||||
|
}
|
||||||
export type UpdateTaskNameMutationHookResult = ReturnType<typeof useUpdateTaskNameMutation>;
|
export type UpdateTaskNameMutationHookResult = ReturnType<typeof useUpdateTaskNameMutation>;
|
||||||
export type UpdateTaskNameMutationResult = ApolloReactCommon.MutationResult<UpdateTaskNameMutation>;
|
export type UpdateTaskNameMutationResult = ApolloReactCommon.MutationResult<UpdateTaskNameMutation>;
|
||||||
export type UpdateTaskNameMutationOptions = ApolloReactCommon.BaseMutationOptions<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>;
|
export type UpdateTaskNameMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||||
|
UpdateTaskNameMutation,
|
||||||
|
UpdateTaskNameMutationVariables
|
||||||
|
>;
|
||||||
|
@ -11,4 +11,3 @@ const useDeepCompareMemoize = (value: any) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default useDeepCompareMemoize;
|
export default useDeepCompareMemoize;
|
||||||
|
|
||||||
|
@ -27,4 +27,3 @@ Citadel.defaultProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default Citadel;
|
export default Citadel;
|
||||||
|
|
||||||
|
@ -41,4 +41,3 @@ export const getAfterDropDraggableList = (
|
|||||||
? moveItemWithinArray(beforeDropDraggables, droppedDraggable, destination.index)
|
? moveItemWithinArray(beforeDropDraggables, droppedDraggable, destination.index)
|
||||||
: insertItemIntoArray(beforeDropDraggables, droppedDraggable, destination.index);
|
: insertItemIntoArray(beforeDropDraggables, droppedDraggable, destination.index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user