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,8 +13,6 @@ export type Scalars = {
|
||||
UUID: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export type RefreshToken = {
|
||||
__typename?: 'RefreshToken';
|
||||
tokenId: Scalars['ID'];
|
||||
@ -99,17 +97,14 @@ export type Query = {
|
||||
taskGroups: Array<TaskGroup>;
|
||||
};
|
||||
|
||||
|
||||
export type QueryFindUserArgs = {
|
||||
input: FindUser;
|
||||
};
|
||||
|
||||
|
||||
export type QueryFindProjectArgs = {
|
||||
input: FindProject;
|
||||
};
|
||||
|
||||
|
||||
export type QueryProjectsArgs = {
|
||||
input?: Maybe<ProjectsFilter>;
|
||||
};
|
||||
@ -190,57 +185,46 @@ export type Mutation = {
|
||||
deleteTask: DeleteTaskPayload;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateRefreshTokenArgs = {
|
||||
input: NewRefreshToken;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateUserAccountArgs = {
|
||||
input: NewUserAccount;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateOrganizationArgs = {
|
||||
input: NewOrganization;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateTeamArgs = {
|
||||
input: NewTeam;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateProjectArgs = {
|
||||
input: NewProject;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateTaskGroupArgs = {
|
||||
input: NewTaskGroup;
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateTaskArgs = {
|
||||
input: NewTask;
|
||||
};
|
||||
|
||||
|
||||
export type MutationUpdateTaskLocationArgs = {
|
||||
input: NewTaskLocation;
|
||||
};
|
||||
|
||||
|
||||
export type MutationLogoutUserArgs = {
|
||||
input: LogoutUser;
|
||||
};
|
||||
|
||||
|
||||
export type MutationUpdateTaskNameArgs = {
|
||||
input: UpdateTaskName;
|
||||
};
|
||||
|
||||
|
||||
export type MutationDeleteTaskArgs = {
|
||||
input: DeleteTaskInput;
|
||||
};
|
||||
@ -251,67 +235,45 @@ export type CreateTaskMutationVariables = {
|
||||
position: Scalars['Float'];
|
||||
};
|
||||
|
||||
|
||||
export type CreateTaskMutation = (
|
||||
{ __typename?: 'Mutation' }
|
||||
& { createTask: (
|
||||
{ __typename?: 'Task' }
|
||||
& Pick<Task, 'taskID' | 'taskGroupID' | 'name' | 'position'>
|
||||
) }
|
||||
);
|
||||
export type CreateTaskMutation = { __typename?: 'Mutation' } & {
|
||||
createTask: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'taskGroupID' | 'name' | 'position'>;
|
||||
};
|
||||
|
||||
export type DeleteTaskMutationVariables = {
|
||||
taskID: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type DeleteTaskMutation = (
|
||||
{ __typename?: 'Mutation' }
|
||||
& { deleteTask: (
|
||||
{ __typename?: 'DeleteTaskPayload' }
|
||||
& Pick<DeleteTaskPayload, 'taskID'>
|
||||
) }
|
||||
);
|
||||
export type DeleteTaskMutation = { __typename?: 'Mutation' } & {
|
||||
deleteTask: { __typename?: 'DeleteTaskPayload' } & Pick<DeleteTaskPayload, 'taskID'>;
|
||||
};
|
||||
|
||||
export type FindProjectQueryVariables = {
|
||||
projectId: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type FindProjectQuery = (
|
||||
{ __typename?: 'Query' }
|
||||
& { findProject: (
|
||||
{ __typename?: 'Project' }
|
||||
& Pick<Project, 'name'>
|
||||
& { taskGroups: Array<(
|
||||
{ __typename?: 'TaskGroup' }
|
||||
& Pick<TaskGroup, 'taskGroupID' | 'name' | 'position'>
|
||||
& { tasks: Array<(
|
||||
{ __typename?: 'Task' }
|
||||
& Pick<Task, 'taskID' | 'name' | 'position'>
|
||||
)> }
|
||||
)> }
|
||||
) }
|
||||
);
|
||||
export type FindProjectQuery = { __typename?: 'Query' } & {
|
||||
findProject: { __typename?: 'Project' } & 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 GetProjectsQuery = (
|
||||
{ __typename?: 'Query' }
|
||||
& { organizations: Array<(
|
||||
{ __typename?: 'Organization' }
|
||||
& Pick<Organization, 'name'>
|
||||
& { teams: Array<(
|
||||
{ __typename?: 'Team' }
|
||||
& Pick<Team, 'name'>
|
||||
& { projects: Array<(
|
||||
{ __typename?: 'Project' }
|
||||
& Pick<Project, 'name' | 'projectID'>
|
||||
)> }
|
||||
)> }
|
||||
)> }
|
||||
);
|
||||
export type GetProjectsQuery = { __typename?: 'Query' } & {
|
||||
organizations: Array<
|
||||
{ __typename?: 'Organization' } & Pick<Organization, 'name'> & {
|
||||
teams: Array<
|
||||
{ __typename?: 'Team' } & Pick<Team, 'name'> & {
|
||||
projects: Array<{ __typename?: 'Project' } & Pick<Project, 'name' | 'projectID'>>;
|
||||
}
|
||||
>;
|
||||
}
|
||||
>;
|
||||
};
|
||||
|
||||
export type UpdateTaskLocationMutationVariables = {
|
||||
taskID: Scalars['String'];
|
||||
@ -319,29 +281,18 @@ export type UpdateTaskLocationMutationVariables = {
|
||||
position: Scalars['Float'];
|
||||
};
|
||||
|
||||
|
||||
export type UpdateTaskLocationMutation = (
|
||||
{ __typename?: 'Mutation' }
|
||||
& { updateTaskLocation: (
|
||||
{ __typename?: 'Task' }
|
||||
& Pick<Task, 'taskID' | 'createdAt' | 'name' | 'position'>
|
||||
) }
|
||||
);
|
||||
export type UpdateTaskLocationMutation = { __typename?: 'Mutation' } & {
|
||||
updateTaskLocation: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'createdAt' | 'name' | 'position'>;
|
||||
};
|
||||
|
||||
export type UpdateTaskNameMutationVariables = {
|
||||
taskID: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type UpdateTaskNameMutation = (
|
||||
{ __typename?: 'Mutation' }
|
||||
& { updateTaskName: (
|
||||
{ __typename?: 'Task' }
|
||||
& Pick<Task, 'taskID' | 'name' | 'position'>
|
||||
) }
|
||||
);
|
||||
|
||||
export type UpdateTaskNameMutation = { __typename?: 'Mutation' } & {
|
||||
updateTaskName: { __typename?: 'Task' } & Pick<Task, 'taskID' | 'name' | 'position'>;
|
||||
};
|
||||
|
||||
export const CreateTaskDocument = gql`
|
||||
mutation createTask($taskGroupID: String!, $name: String!, $position: Float!) {
|
||||
@ -374,12 +325,17 @@ export type CreateTaskMutationFn = ApolloReactCommon.MutationFunction<CreateTask
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useCreateTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<CreateTaskMutation, CreateTaskMutationVariables>) {
|
||||
export function useCreateTaskMutation(
|
||||
baseOptions?: ApolloReactHooks.MutationHookOptions<CreateTaskMutation, CreateTaskMutationVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useMutation<CreateTaskMutation, CreateTaskMutationVariables>(CreateTaskDocument, baseOptions);
|
||||
}
|
||||
export type CreateTaskMutationHookResult = ReturnType<typeof useCreateTaskMutation>;
|
||||
export type CreateTaskMutationResult = ApolloReactCommon.MutationResult<CreateTaskMutation>;
|
||||
export type CreateTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<CreateTaskMutation, CreateTaskMutationVariables>;
|
||||
export type CreateTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||
CreateTaskMutation,
|
||||
CreateTaskMutationVariables
|
||||
>;
|
||||
export const DeleteTaskDocument = gql`
|
||||
mutation deleteTask($taskID: String!) {
|
||||
deleteTask(input: { taskID: $taskID }) {
|
||||
@ -406,12 +362,17 @@ export type DeleteTaskMutationFn = ApolloReactCommon.MutationFunction<DeleteTask
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useDeleteTaskMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<DeleteTaskMutation, DeleteTaskMutationVariables>) {
|
||||
export function useDeleteTaskMutation(
|
||||
baseOptions?: ApolloReactHooks.MutationHookOptions<DeleteTaskMutation, DeleteTaskMutationVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useMutation<DeleteTaskMutation, DeleteTaskMutationVariables>(DeleteTaskDocument, baseOptions);
|
||||
}
|
||||
export type DeleteTaskMutationHookResult = ReturnType<typeof useDeleteTaskMutation>;
|
||||
export type DeleteTaskMutationResult = ApolloReactCommon.MutationResult<DeleteTaskMutation>;
|
||||
export type DeleteTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<DeleteTaskMutation, DeleteTaskMutationVariables>;
|
||||
export type DeleteTaskMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||
DeleteTaskMutation,
|
||||
DeleteTaskMutationVariables
|
||||
>;
|
||||
export const FindProjectDocument = gql`
|
||||
query findProject($projectId: String!) {
|
||||
findProject(input: { projectId: $projectId }) {
|
||||
@ -446,10 +407,14 @@ export const FindProjectDocument = gql`
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useFindProjectQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<FindProjectQuery, FindProjectQueryVariables>) {
|
||||
export function useFindProjectQuery(
|
||||
baseOptions?: ApolloReactHooks.QueryHookOptions<FindProjectQuery, FindProjectQueryVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
||||
}
|
||||
export function useFindProjectLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<FindProjectQuery, FindProjectQueryVariables>) {
|
||||
export function useFindProjectLazyQuery(
|
||||
baseOptions?: ApolloReactHooks.LazyQueryHookOptions<FindProjectQuery, FindProjectQueryVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useLazyQuery<FindProjectQuery, FindProjectQueryVariables>(FindProjectDocument, baseOptions);
|
||||
}
|
||||
export type FindProjectQueryHookResult = ReturnType<typeof useFindProjectQuery>;
|
||||
@ -485,10 +450,14 @@ export const GetProjectsDocument = gql`
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetProjectsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>) {
|
||||
export function useGetProjectsQuery(
|
||||
baseOptions?: ApolloReactHooks.QueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
||||
}
|
||||
export function useGetProjectsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>) {
|
||||
export function useGetProjectsLazyQuery(
|
||||
baseOptions?: ApolloReactHooks.LazyQueryHookOptions<GetProjectsQuery, GetProjectsQueryVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useLazyQuery<GetProjectsQuery, GetProjectsQueryVariables>(GetProjectsDocument, baseOptions);
|
||||
}
|
||||
export type GetProjectsQueryHookResult = ReturnType<typeof useGetProjectsQuery>;
|
||||
@ -504,7 +473,10 @@ export const UpdateTaskLocationDocument = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>;
|
||||
export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<
|
||||
UpdateTaskLocationMutation,
|
||||
UpdateTaskLocationMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useUpdateTaskLocationMutation__
|
||||
@ -525,12 +497,20 @@ export type UpdateTaskLocationMutationFn = ApolloReactCommon.MutationFunction<Up
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useUpdateTaskLocationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>) {
|
||||
return ApolloReactHooks.useMutation<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>(UpdateTaskLocationDocument, baseOptions);
|
||||
export function useUpdateTaskLocationMutation(
|
||||
baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useMutation<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>(
|
||||
UpdateTaskLocationDocument,
|
||||
baseOptions,
|
||||
);
|
||||
}
|
||||
export type UpdateTaskLocationMutationHookResult = ReturnType<typeof useUpdateTaskLocationMutation>;
|
||||
export type UpdateTaskLocationMutationResult = ApolloReactCommon.MutationResult<UpdateTaskLocationMutation>;
|
||||
export type UpdateTaskLocationMutationOptions = ApolloReactCommon.BaseMutationOptions<UpdateTaskLocationMutation, UpdateTaskLocationMutationVariables>;
|
||||
export type UpdateTaskLocationMutationOptions = ApolloReactCommon.BaseMutationOptions<
|
||||
UpdateTaskLocationMutation,
|
||||
UpdateTaskLocationMutationVariables
|
||||
>;
|
||||
export const UpdateTaskNameDocument = gql`
|
||||
mutation updateTaskName($taskID: String!, $name: String!) {
|
||||
updateTaskName(input: { taskID: $taskID, name: $name }) {
|
||||
@ -540,7 +520,10 @@ export const UpdateTaskNameDocument = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>;
|
||||
export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<
|
||||
UpdateTaskNameMutation,
|
||||
UpdateTaskNameMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useUpdateTaskNameMutation__
|
||||
@ -560,9 +543,17 @@ export type UpdateTaskNameMutationFn = ApolloReactCommon.MutationFunction<Update
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useUpdateTaskNameMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>) {
|
||||
return ApolloReactHooks.useMutation<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>(UpdateTaskNameDocument, baseOptions);
|
||||
export function useUpdateTaskNameMutation(
|
||||
baseOptions?: ApolloReactHooks.MutationHookOptions<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>,
|
||||
) {
|
||||
return ApolloReactHooks.useMutation<UpdateTaskNameMutation, UpdateTaskNameMutationVariables>(
|
||||
UpdateTaskNameDocument,
|
||||
baseOptions,
|
||||
);
|
||||
}
|
||||
export type UpdateTaskNameMutationHookResult = ReturnType<typeof useUpdateTaskNameMutation>;
|
||||
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;
|
||||
|
||||
|
@ -27,4 +27,3 @@ Citadel.defaultProps = {
|
||||
};
|
||||
|
||||
export default Citadel;
|
||||
|
||||
|
@ -41,4 +41,3 @@ export const getAfterDropDraggableList = (
|
||||
? moveItemWithinArray(beforeDropDraggables, droppedDraggable, destination.index)
|
||||
: insertItemIntoArray(beforeDropDraggables, droppedDraggable, destination.index);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user