updated schema

This commit is contained in:
Djeeberjr 2021-11-02 00:34:29 +01:00
parent 6b8c922d5b
commit 6bcb41820c
2 changed files with 1130 additions and 1018 deletions

View File

@ -62,7 +62,8 @@ export type RootMutation = {
delete?: Maybe<Scalars["String"]>; delete?: Maybe<Scalars["String"]>;
deleteDir: Scalars["String"]; deleteDir: Scalars["String"];
login: LoginResut; login: LoginResut;
move?: Maybe<File>; move: File;
moveDir: Array<Maybe<File>>;
}; };
@ -98,6 +99,12 @@ export type RootMutationMoveArgs = {
dest: Scalars["objID"]; dest: Scalars["objID"];
}; };
export type RootMutationMoveDirArgs = {
src: Scalars["objID"];
dest: Scalars["objID"];
};
export type RootQuery = { export type RootQuery = {
__typename?: "RootQuery"; __typename?: "RootQuery";
/** True if the user is authorized */ /** True if the user is authorized */
@ -223,10 +230,24 @@ export type MoveMutationVariables = Exact<{
export type MoveMutation = ( export type MoveMutation = (
{ __typename?: "RootMutation" } { __typename?: "RootMutation" }
& { move?: Maybe<( & { move: (
{ __typename?: "File" } { __typename?: "File" }
& Pick<File, "id"> & Pick<File, "id">
)> } ) }
);
export type MoveDirMutationVariables = Exact<{
src: Scalars["objID"];
dest: Scalars["objID"];
}>;
export type MoveDirMutation = (
{ __typename?: "RootMutation" }
& { moveDir: Array<Maybe<(
{ __typename?: "File" }
& Pick<File, "id">
)>> }
); );
export type OpenDirQueryVariables = Exact<{ export type OpenDirQueryVariables = Exact<{
@ -547,6 +568,40 @@ export function useMoveMutation(baseOptions?: Apollo.MutationHookOptions<MoveMut
export type MoveMutationHookResult = ReturnType<typeof useMoveMutation>; export type MoveMutationHookResult = ReturnType<typeof useMoveMutation>;
export type MoveMutationResult = Apollo.MutationResult<MoveMutation>; export type MoveMutationResult = Apollo.MutationResult<MoveMutation>;
export type MoveMutationOptions = Apollo.BaseMutationOptions<MoveMutation, MoveMutationVariables>; export type MoveMutationOptions = Apollo.BaseMutationOptions<MoveMutation, MoveMutationVariables>;
export const MoveDirDocument = gql`
mutation moveDir($src: objID!, $dest: objID!) {
moveDir(src: $src, dest: $dest) {
id
}
}
`
export type MoveDirMutationFn = Apollo.MutationFunction<MoveDirMutation, MoveDirMutationVariables>;
/**
* __useMoveDirMutation__
*
* To run a mutation, you first call `useMoveDirMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useMoveDirMutation` 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 [moveDirMutation, { data, loading, error }] = useMoveDirMutation({
* variables: {
* src: // value for 'src'
* dest: // value for 'dest'
* },
* });
*/
export function useMoveDirMutation(baseOptions?: Apollo.MutationHookOptions<MoveDirMutation, MoveDirMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<MoveDirMutation, MoveDirMutationVariables>(MoveDirDocument, options)
}
export type MoveDirMutationHookResult = ReturnType<typeof useMoveDirMutation>;
export type MoveDirMutationResult = Apollo.MutationResult<MoveDirMutation>;
export type MoveDirMutationOptions = Apollo.BaseMutationOptions<MoveDirMutation, MoveDirMutationVariables>;
export const OpenDirDocument = gql` export const OpenDirDocument = gql`
query openDir($path: objID!) { query openDir($path: objID!) {
files(path: $path) { files(path: $path) {

File diff suppressed because it is too large Load Diff