242 lines
5.8 KiB
TypeScript
242 lines
5.8 KiB
TypeScript
export type Maybe<T> = T | null;
|
|
export type InputMaybe<T> = Maybe<T>;
|
|
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
|
|
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
export type Scalars = {
|
|
ID: { input: string; output: string; }
|
|
String: { input: string; output: string; }
|
|
Boolean: { input: boolean; output: boolean; }
|
|
Int: { input: number; output: number; }
|
|
Float: { input: number; output: number; }
|
|
Date: { input: any; output: any; }
|
|
};
|
|
|
|
export type AdminInput = {
|
|
password: Scalars['String']['input'];
|
|
username: Scalars['String']['input'];
|
|
};
|
|
|
|
export type Article = {
|
|
__typename?: 'Article';
|
|
blocks: Array<Block>;
|
|
cardImage: Scalars['String']['output'];
|
|
createdAt: Scalars['Date']['output'];
|
|
description: Scalars['String']['output'];
|
|
id: Scalars['Int']['output'];
|
|
posterImage: Scalars['String']['output'];
|
|
tags: Array<Scalars['String']['output']>;
|
|
title: Scalars['String']['output'];
|
|
};
|
|
|
|
export type ArticleInput = {
|
|
tags: Array<Scalars['String']['input']>;
|
|
};
|
|
|
|
export type ArticleResult = Article | Error;
|
|
|
|
export type Articles = {
|
|
__typename?: 'Articles';
|
|
articles: Array<Article>;
|
|
};
|
|
|
|
export type ArticlesResult = Articles | Error;
|
|
|
|
export type AuthResponse = {
|
|
__typename?: 'AuthResponse';
|
|
accessToken: Scalars['String']['output'];
|
|
};
|
|
|
|
export type AuthResult = AuthResponse | Error;
|
|
|
|
export type Block = Content | Quote | Slider | Video;
|
|
|
|
export type CheckAuthResponse = {
|
|
__typename?: 'CheckAuthResponse';
|
|
isAuth: Scalars['Boolean']['output'];
|
|
};
|
|
|
|
export type CheckAuthResult = CheckAuthResponse | Error;
|
|
|
|
export type Content = {
|
|
__typename?: 'Content';
|
|
content: Scalars['String']['output'];
|
|
type: Scalars['String']['output'];
|
|
};
|
|
|
|
export type CreateArticleInput = {
|
|
blocks: Scalars['String']['input'];
|
|
cardImage: Scalars['String']['input'];
|
|
createdAt: Scalars['Date']['input'];
|
|
description: Scalars['String']['input'];
|
|
posterImage: Scalars['String']['input'];
|
|
tags: Array<Scalars['String']['input']>;
|
|
title: Scalars['String']['input'];
|
|
};
|
|
|
|
export type CreateProjectInput = {
|
|
city: Scalars['String']['input'];
|
|
company: Scalars['String']['input'];
|
|
devices: Array<Scalars['String']['input']>;
|
|
image: Scalars['String']['input'];
|
|
name: Scalars['String']['input'];
|
|
releaseDate: Scalars['Date']['input'];
|
|
stage: Scalars['Int']['input'];
|
|
};
|
|
|
|
export type Error = {
|
|
__typename?: 'Error';
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type Image = {
|
|
__typename?: 'Image';
|
|
caption?: Maybe<Scalars['String']['output']>;
|
|
img: Scalars['String']['output'];
|
|
};
|
|
|
|
export type LogoutResponse = {
|
|
__typename?: 'LogoutResponse';
|
|
success: Scalars['Boolean']['output'];
|
|
};
|
|
|
|
export type LogoutResult = Error | LogoutResponse;
|
|
|
|
export type Mutation = {
|
|
__typename?: 'Mutation';
|
|
createArticle: ArticleResult;
|
|
createProject: ProjectResult;
|
|
deleteArticle: ArticleResult;
|
|
deleteProject: ProjectResult;
|
|
login: AuthResult;
|
|
updateArticle: ArticleResult;
|
|
updateProject: ProjectResult;
|
|
};
|
|
|
|
|
|
export type MutationCreateArticleArgs = {
|
|
input: CreateArticleInput;
|
|
};
|
|
|
|
|
|
export type MutationCreateProjectArgs = {
|
|
input: CreateProjectInput;
|
|
};
|
|
|
|
|
|
export type MutationDeleteArticleArgs = {
|
|
id: Scalars['Int']['input'];
|
|
};
|
|
|
|
|
|
export type MutationDeleteProjectArgs = {
|
|
id: Scalars['Int']['input'];
|
|
};
|
|
|
|
|
|
export type MutationLoginArgs = {
|
|
input: AdminInput;
|
|
};
|
|
|
|
|
|
export type MutationUpdateArticleArgs = {
|
|
id: Scalars['Int']['input'];
|
|
input: CreateArticleInput;
|
|
};
|
|
|
|
|
|
export type MutationUpdateProjectArgs = {
|
|
id: Scalars['Int']['input'];
|
|
input: CreateProjectInput;
|
|
};
|
|
|
|
export type Project = {
|
|
__typename?: 'Project';
|
|
city: Scalars['String']['output'];
|
|
company: Scalars['String']['output'];
|
|
devices: Array<Scalars['String']['output']>;
|
|
id: Scalars['Int']['output'];
|
|
image: Scalars['String']['output'];
|
|
name: Scalars['String']['output'];
|
|
releaseDate: Scalars['Date']['output'];
|
|
stage: Scalars['Int']['output'];
|
|
};
|
|
|
|
export type ProjectInput = {
|
|
devices: Array<Scalars['String']['input']>;
|
|
};
|
|
|
|
export type ProjectResult = Error | Project;
|
|
|
|
export type Projects = {
|
|
__typename?: 'Projects';
|
|
projects: Array<Project>;
|
|
};
|
|
|
|
export type ProjectsResult = Error | Projects;
|
|
|
|
export type Query = {
|
|
__typename?: 'Query';
|
|
article: ArticleResult;
|
|
articles: ArticlesResult;
|
|
checkAuth: CheckAuthResult;
|
|
logout: LogoutResult;
|
|
project: ProjectResult;
|
|
projects: ProjectsResult;
|
|
regionName: RegionResult;
|
|
};
|
|
|
|
|
|
export type QueryArticleArgs = {
|
|
id: Scalars['Int']['input'];
|
|
};
|
|
|
|
|
|
export type QueryArticlesArgs = {
|
|
input?: InputMaybe<ArticleInput>;
|
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
};
|
|
|
|
|
|
export type QueryProjectArgs = {
|
|
id: Scalars['Int']['input'];
|
|
};
|
|
|
|
|
|
export type QueryProjectsArgs = {
|
|
input?: InputMaybe<ProjectInput>;
|
|
};
|
|
|
|
export type Quote = {
|
|
__typename?: 'Quote';
|
|
authorAvatar: Scalars['String']['output'];
|
|
authorName: Scalars['String']['output'];
|
|
authorRole: Scalars['String']['output'];
|
|
text: Scalars['String']['output'];
|
|
type: Scalars['String']['output'];
|
|
};
|
|
|
|
export type Region = {
|
|
__typename?: 'Region';
|
|
regionName: Scalars['String']['output'];
|
|
};
|
|
|
|
export type RegionResult = Error | Region;
|
|
|
|
export type Slider = {
|
|
__typename?: 'Slider';
|
|
images: Array<Image>;
|
|
type: Scalars['String']['output'];
|
|
};
|
|
|
|
export type Video = {
|
|
__typename?: 'Video';
|
|
caption?: Maybe<Scalars['String']['output']>;
|
|
type: Scalars['String']['output'];
|
|
video: Scalars['String']['output'];
|
|
};
|