import { gql } from '@apollo/client'; export type Maybe = T | null; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */ DateTime: any; /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ Object: any; }; export type Article = { __typename?: 'Article'; id: Scalars['ID']; title: Scalars['String']; content: Scalars['String']; publishedAt?: Maybe; tags: Array; key?: Maybe; html: Scalars['String']; description?: Maybe; }; export type CreateArticleInput = { title: Scalars['String']; content: Scalars['String']; publishedAt?: Maybe; tags: Array; }; export type CreateDraftArticleInput = { payload: Scalars['Object']; key: Scalars['String']; automatically?: Maybe; }; export type CreateTagInput = { name: Scalars['String']; }; export type DraftArticle = { __typename?: 'DraftArticle'; id: Scalars['ID']; payload: Scalars['Object']; key: Scalars['String']; automatically: Scalars['Boolean']; }; export type Hello = { __typename?: 'Hello'; message: Scalars['String']; }; export type Mutation = { __typename?: 'Mutation'; createArticle: Article; updateArticle: Article; removeArticle: Scalars['Int']; putDraftForArticle: DraftArticle; listDraftForArticle: Array; lastDraftForArticle: DraftArticle; createTag: Tag; updateTag: Tag; removeTag: Tag; }; export type MutationCreateArticleArgs = { createArticleInput: CreateArticleInput; }; export type MutationUpdateArticleArgs = { updateArticleInput: UpdateArticleInput; }; export type MutationRemoveArticleArgs = { id: Scalars['String']; }; export type MutationPutDraftForArticleArgs = { draft: CreateDraftArticleInput; }; export type MutationListDraftForArticleArgs = { key: Scalars['String']; }; export type MutationLastDraftForArticleArgs = { key: Scalars['String']; }; export type MutationCreateTagArgs = { createTagInput: CreateTagInput; }; export type MutationUpdateTagArgs = { updateTagInput: UpdateTagInput; }; export type MutationRemoveTagArgs = { id: Scalars['String']; }; export type Query = { __typename?: 'Query'; hello: Hello; articles: Array
; article: Article; tags: Array; tag: Tag; }; export type QueryArticleArgs = { id: Scalars['String']; }; export type QueryTagArgs = { id: Scalars['String']; }; export type Tag = { __typename?: 'Tag'; id: Scalars['ID']; name: Scalars['String']; }; export type UpdateArticleInput = { title?: Maybe; content?: Maybe; publishedAt?: Maybe; tags?: Maybe>; id: Scalars['String']; }; export type UpdateTagInput = { name?: Maybe; id: Scalars['String']; };