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

@ -11,4 +11,6 @@ generates:
- "typescript-operations"
- "typescript-react-apollo"
config:
withHooks: true
withHooks: true
scalars:
DateTime: string

View File

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

File diff suppressed because it is too large Load Diff