updated graphql types

This commit is contained in:
Djeeberjr 2021-08-06 19:24:20 +02:00
parent 318343e731
commit 21ae838025
3 changed files with 473 additions and 443 deletions

View File

@ -12,3 +12,5 @@ generates:
- "typescript-react-apollo" - "typescript-react-apollo"
config: config:
withHooks: true withHooks: true
scalars:
DateTime: string

View File

@ -12,8 +12,11 @@ export type Scalars = {
Boolean: boolean; Boolean: boolean;
Int: number; Int: number;
Float: number; Float: number;
/** DateTime is a DateTime in ISO 8601 format */
DateTime: string;
}; };
/** Represents a directory */ /** Represents a directory */
export type Directory = { export type Directory = {
__typename?: "Directory"; __typename?: "Directory";
@ -31,6 +34,7 @@ export type File = {
etag?: Maybe<Scalars["String"]>; etag?: Maybe<Scalars["String"]>;
/** The uniqe ID of the file. Represents the path and the s3 key. */ /** The uniqe ID of the file. Represents the path and the s3 key. */
id: Scalars["ID"]; id: Scalars["ID"];
lastModified?: Maybe<Scalars["DateTime"]>;
name?: Maybe<Scalars["String"]>; name?: Maybe<Scalars["String"]>;
parent?: Maybe<Directory>; parent?: Maybe<Directory>;
size: Scalars["Int"]; size: Scalars["Int"];
@ -80,7 +84,7 @@ export type OpenDirQuery = (
{ __typename?: "RootQuery" } { __typename?: "RootQuery" }
& { files: Array<Maybe<( & { files: Array<Maybe<(
{ __typename?: "File" } { __typename?: "File" }
& Pick<File, "id" | "name" | "size"> & Pick<File, "id" | "name" | "size" | "lastModified">
)>>, directorys: Array<Maybe<( )>>, directorys: Array<Maybe<(
{ __typename?: "Directory" } { __typename?: "Directory" }
& Pick<Directory, "id" | "name"> & Pick<Directory, "id" | "name">
@ -133,6 +137,7 @@ export const OpenDirDocument = gql`
id id
name name
size size
lastModified
} }
directorys(path: $path) { directorys(path: $path) {
id id

File diff suppressed because it is too large Load Diff