745 lines
34 KiB
TypeScript
745 lines
34 KiB
TypeScript
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
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; }
|
|
Instant: { input: any; output: any; }
|
|
UUID: { input: any; output: any; }
|
|
UnsignedInt: { input: any; output: any; }
|
|
};
|
|
|
|
/** Defines when a policy shall be executed. */
|
|
export const ApplyPolicy = {
|
|
/** After the resolver was executed. */
|
|
AfterResolver: 'AFTER_RESOLVER',
|
|
/** Before the resolver was executed. */
|
|
BeforeResolver: 'BEFORE_RESOLVER',
|
|
/** The policy is applied in the validation step before the execution. */
|
|
Validation: 'VALIDATION'
|
|
} as const;
|
|
|
|
export type ApplyPolicy = typeof ApplyPolicy[keyof typeof ApplyPolicy];
|
|
export type ChapterDto = {
|
|
body: Scalars['String']['output'];
|
|
createdTime: Scalars['Instant']['output'];
|
|
id: Scalars['UnsignedInt']['output'];
|
|
images: Array<ImageDto>;
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
name: Scalars['String']['output'];
|
|
order: Scalars['UnsignedInt']['output'];
|
|
revision: Scalars['UnsignedInt']['output'];
|
|
url: Maybe<Scalars['String']['output']>;
|
|
};
|
|
|
|
export type ChapterDtoFilterInput = {
|
|
and?: InputMaybe<Array<ChapterDtoFilterInput>>;
|
|
body?: InputMaybe<StringOperationFilterInput>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
id?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
images?: InputMaybe<ListFilterInputTypeOfImageDtoFilterInput>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
name?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<ChapterDtoFilterInput>>;
|
|
order?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
revision?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
url?: InputMaybe<StringOperationFilterInput>;
|
|
};
|
|
|
|
export type ChapterPullRequestedEvent = {
|
|
chapterNumber: Scalars['UnsignedInt']['output'];
|
|
novelId: Scalars['UnsignedInt']['output'];
|
|
};
|
|
|
|
export type ChapterReaderDto = {
|
|
body: Scalars['String']['output'];
|
|
createdTime: Scalars['Instant']['output'];
|
|
id: Scalars['UnsignedInt']['output'];
|
|
images: Array<ImageDto>;
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
name: Scalars['String']['output'];
|
|
nextChapterOrder: Maybe<Scalars['UnsignedInt']['output']>;
|
|
novelId: Scalars['UnsignedInt']['output'];
|
|
novelName: Scalars['String']['output'];
|
|
order: Scalars['UnsignedInt']['output'];
|
|
prevChapterOrder: Maybe<Scalars['UnsignedInt']['output']>;
|
|
revision: Scalars['UnsignedInt']['output'];
|
|
totalChapters: Scalars['Int']['output'];
|
|
url: Maybe<Scalars['String']['output']>;
|
|
};
|
|
|
|
export type DeleteJobError = KeyNotFoundError;
|
|
|
|
export type DeleteJobInput = {
|
|
jobKey: Scalars['String']['input'];
|
|
};
|
|
|
|
export type DeleteJobPayload = {
|
|
boolean: Maybe<Scalars['Boolean']['output']>;
|
|
errors: Maybe<Array<DeleteJobError>>;
|
|
};
|
|
|
|
export type DuplicateNameError = Error & {
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type Error = {
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type FetchChapterContentsInput = {
|
|
chapterNumber: Scalars['UnsignedInt']['input'];
|
|
novelId: Scalars['UnsignedInt']['input'];
|
|
};
|
|
|
|
export type FetchChapterContentsPayload = {
|
|
chapterPullRequestedEvent: Maybe<ChapterPullRequestedEvent>;
|
|
};
|
|
|
|
export type FormatError = Error & {
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type ImageDto = {
|
|
createdTime: Scalars['Instant']['output'];
|
|
id: Scalars['UUID']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
newPath: Maybe<Scalars['String']['output']>;
|
|
};
|
|
|
|
export type ImageDtoFilterInput = {
|
|
and?: InputMaybe<Array<ImageDtoFilterInput>>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
id?: InputMaybe<UuidOperationFilterInput>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
newPath?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<ImageDtoFilterInput>>;
|
|
};
|
|
|
|
export type ImageDtoSortInput = {
|
|
createdTime?: InputMaybe<SortEnumType>;
|
|
id?: InputMaybe<SortEnumType>;
|
|
lastUpdatedTime?: InputMaybe<SortEnumType>;
|
|
newPath?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export type ImportNovelInput = {
|
|
novelUrl: Scalars['String']['input'];
|
|
};
|
|
|
|
export type ImportNovelPayload = {
|
|
novelUpdateRequestedEvent: Maybe<NovelUpdateRequestedEvent>;
|
|
};
|
|
|
|
export type InstantFilterInput = {
|
|
and?: InputMaybe<Array<InstantFilterInput>>;
|
|
or?: InputMaybe<Array<InstantFilterInput>>;
|
|
};
|
|
|
|
export type JobKey = {
|
|
group: Scalars['String']['output'];
|
|
name: Scalars['String']['output'];
|
|
};
|
|
|
|
export type JobPersistenceError = Error & {
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type KeyNotFoundError = Error & {
|
|
message: Scalars['String']['output'];
|
|
};
|
|
|
|
export type KeyValuePairOfStringAndString = {
|
|
key: Scalars['String']['output'];
|
|
value: Scalars['String']['output'];
|
|
};
|
|
|
|
export const Language = {
|
|
Ch: 'CH',
|
|
En: 'EN',
|
|
Ja: 'JA',
|
|
Kr: 'KR'
|
|
} as const;
|
|
|
|
export type Language = typeof Language[keyof typeof Language];
|
|
export type LanguageOperationFilterInput = {
|
|
eq?: InputMaybe<Language>;
|
|
in?: InputMaybe<Array<Language>>;
|
|
neq?: InputMaybe<Language>;
|
|
nin?: InputMaybe<Array<Language>>;
|
|
};
|
|
|
|
export type ListFilterInputTypeOfChapterDtoFilterInput = {
|
|
all?: InputMaybe<ChapterDtoFilterInput>;
|
|
any?: InputMaybe<Scalars['Boolean']['input']>;
|
|
none?: InputMaybe<ChapterDtoFilterInput>;
|
|
some?: InputMaybe<ChapterDtoFilterInput>;
|
|
};
|
|
|
|
export type ListFilterInputTypeOfImageDtoFilterInput = {
|
|
all?: InputMaybe<ImageDtoFilterInput>;
|
|
any?: InputMaybe<Scalars['Boolean']['input']>;
|
|
none?: InputMaybe<ImageDtoFilterInput>;
|
|
some?: InputMaybe<ImageDtoFilterInput>;
|
|
};
|
|
|
|
export type ListFilterInputTypeOfNovelTagDtoFilterInput = {
|
|
all?: InputMaybe<NovelTagDtoFilterInput>;
|
|
any?: InputMaybe<Scalars['Boolean']['input']>;
|
|
none?: InputMaybe<NovelTagDtoFilterInput>;
|
|
some?: InputMaybe<NovelTagDtoFilterInput>;
|
|
};
|
|
|
|
export type Mutation = {
|
|
deleteJob: DeleteJobPayload;
|
|
fetchChapterContents: FetchChapterContentsPayload;
|
|
importNovel: ImportNovelPayload;
|
|
registerUser: RegisterUserPayload;
|
|
runJob: RunJobPayload;
|
|
scheduleEventJob: ScheduleEventJobPayload;
|
|
translateText: TranslateTextPayload;
|
|
};
|
|
|
|
|
|
export type MutationDeleteJobArgs = {
|
|
input: DeleteJobInput;
|
|
};
|
|
|
|
|
|
export type MutationFetchChapterContentsArgs = {
|
|
input: FetchChapterContentsInput;
|
|
};
|
|
|
|
|
|
export type MutationImportNovelArgs = {
|
|
input: ImportNovelInput;
|
|
};
|
|
|
|
|
|
export type MutationRegisterUserArgs = {
|
|
input: RegisterUserInput;
|
|
};
|
|
|
|
|
|
export type MutationRunJobArgs = {
|
|
input: RunJobInput;
|
|
};
|
|
|
|
|
|
export type MutationScheduleEventJobArgs = {
|
|
input: ScheduleEventJobInput;
|
|
};
|
|
|
|
|
|
export type MutationTranslateTextArgs = {
|
|
input: TranslateTextInput;
|
|
};
|
|
|
|
export type NovelDto = {
|
|
author: PersonDto;
|
|
chapters: Array<ChapterDto>;
|
|
coverImage: Maybe<ImageDto>;
|
|
createdTime: Scalars['Instant']['output'];
|
|
description: Scalars['String']['output'];
|
|
externalId: Scalars['String']['output'];
|
|
id: Scalars['UnsignedInt']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
name: Scalars['String']['output'];
|
|
rawLanguage: Language;
|
|
rawStatus: NovelStatus;
|
|
source: SourceDto;
|
|
statusOverride: Maybe<NovelStatus>;
|
|
tags: Array<NovelTagDto>;
|
|
url: Scalars['String']['output'];
|
|
};
|
|
|
|
export type NovelDtoFilterInput = {
|
|
and?: InputMaybe<Array<NovelDtoFilterInput>>;
|
|
author?: InputMaybe<PersonDtoFilterInput>;
|
|
chapters?: InputMaybe<ListFilterInputTypeOfChapterDtoFilterInput>;
|
|
coverImage?: InputMaybe<ImageDtoFilterInput>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
description?: InputMaybe<StringOperationFilterInput>;
|
|
externalId?: InputMaybe<StringOperationFilterInput>;
|
|
id?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
name?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<NovelDtoFilterInput>>;
|
|
rawLanguage?: InputMaybe<LanguageOperationFilterInput>;
|
|
rawStatus?: InputMaybe<NovelStatusOperationFilterInput>;
|
|
source?: InputMaybe<SourceDtoFilterInput>;
|
|
statusOverride?: InputMaybe<NullableOfNovelStatusOperationFilterInput>;
|
|
tags?: InputMaybe<ListFilterInputTypeOfNovelTagDtoFilterInput>;
|
|
url?: InputMaybe<StringOperationFilterInput>;
|
|
};
|
|
|
|
export type NovelDtoSortInput = {
|
|
author?: InputMaybe<PersonDtoSortInput>;
|
|
coverImage?: InputMaybe<ImageDtoSortInput>;
|
|
createdTime?: InputMaybe<SortEnumType>;
|
|
description?: InputMaybe<SortEnumType>;
|
|
externalId?: InputMaybe<SortEnumType>;
|
|
id?: InputMaybe<SortEnumType>;
|
|
lastUpdatedTime?: InputMaybe<SortEnumType>;
|
|
name?: InputMaybe<SortEnumType>;
|
|
rawLanguage?: InputMaybe<SortEnumType>;
|
|
rawStatus?: InputMaybe<SortEnumType>;
|
|
source?: InputMaybe<SourceDtoSortInput>;
|
|
statusOverride?: InputMaybe<SortEnumType>;
|
|
url?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export const NovelStatus = {
|
|
Abandoned: 'ABANDONED',
|
|
Completed: 'COMPLETED',
|
|
Hiatus: 'HIATUS',
|
|
InProgress: 'IN_PROGRESS',
|
|
Unknown: 'UNKNOWN'
|
|
} as const;
|
|
|
|
export type NovelStatus = typeof NovelStatus[keyof typeof NovelStatus];
|
|
export type NovelStatusOperationFilterInput = {
|
|
eq?: InputMaybe<NovelStatus>;
|
|
in?: InputMaybe<Array<NovelStatus>>;
|
|
neq?: InputMaybe<NovelStatus>;
|
|
nin?: InputMaybe<Array<NovelStatus>>;
|
|
};
|
|
|
|
export type NovelTagDto = {
|
|
createdTime: Scalars['Instant']['output'];
|
|
displayName: Scalars['String']['output'];
|
|
id: Scalars['UnsignedInt']['output'];
|
|
key: Scalars['String']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
source: Maybe<SourceDto>;
|
|
tagType: TagType;
|
|
};
|
|
|
|
export type NovelTagDtoFilterInput = {
|
|
and?: InputMaybe<Array<NovelTagDtoFilterInput>>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
displayName?: InputMaybe<StringOperationFilterInput>;
|
|
id?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
key?: InputMaybe<StringOperationFilterInput>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
or?: InputMaybe<Array<NovelTagDtoFilterInput>>;
|
|
source?: InputMaybe<SourceDtoFilterInput>;
|
|
tagType?: InputMaybe<TagTypeOperationFilterInput>;
|
|
};
|
|
|
|
export type NovelUpdateRequestedEvent = {
|
|
novelUrl: Scalars['String']['output'];
|
|
};
|
|
|
|
/** A connection to a list of items. */
|
|
export type NovelsConnection = {
|
|
/** A list of edges. */
|
|
edges: Maybe<Array<NovelsEdge>>;
|
|
/** A flattened list of the nodes. */
|
|
nodes: Maybe<Array<NovelDto>>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
};
|
|
|
|
/** An edge in a connection. */
|
|
export type NovelsEdge = {
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String']['output'];
|
|
/** The item at the end of the edge. */
|
|
node: NovelDto;
|
|
};
|
|
|
|
export type NullableOfNovelStatusOperationFilterInput = {
|
|
eq?: InputMaybe<NovelStatus>;
|
|
in?: InputMaybe<Array<InputMaybe<NovelStatus>>>;
|
|
neq?: InputMaybe<NovelStatus>;
|
|
nin?: InputMaybe<Array<InputMaybe<NovelStatus>>>;
|
|
};
|
|
|
|
/** Information about pagination in a connection. */
|
|
export type PageInfo = {
|
|
/** When paginating forwards, the cursor to continue. */
|
|
endCursor: Maybe<Scalars['String']['output']>;
|
|
/** Indicates whether more edges exist following the set defined by the clients arguments. */
|
|
hasNextPage: Scalars['Boolean']['output'];
|
|
/** Indicates whether more edges exist prior the set defined by the clients arguments. */
|
|
hasPreviousPage: Scalars['Boolean']['output'];
|
|
/** When paginating backwards, the cursor to continue. */
|
|
startCursor: Maybe<Scalars['String']['output']>;
|
|
};
|
|
|
|
export type PersonDto = {
|
|
createdTime: Scalars['Instant']['output'];
|
|
externalUrl: Maybe<Scalars['String']['output']>;
|
|
id: Scalars['UnsignedInt']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
name: Scalars['String']['output'];
|
|
};
|
|
|
|
export type PersonDtoFilterInput = {
|
|
and?: InputMaybe<Array<PersonDtoFilterInput>>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
externalUrl?: InputMaybe<StringOperationFilterInput>;
|
|
id?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
name?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<PersonDtoFilterInput>>;
|
|
};
|
|
|
|
export type PersonDtoSortInput = {
|
|
createdTime?: InputMaybe<SortEnumType>;
|
|
externalUrl?: InputMaybe<SortEnumType>;
|
|
id?: InputMaybe<SortEnumType>;
|
|
lastUpdatedTime?: InputMaybe<SortEnumType>;
|
|
name?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export type Query = {
|
|
chapter: Maybe<ChapterReaderDto>;
|
|
jobs: Array<SchedulerJob>;
|
|
novels: Maybe<NovelsConnection>;
|
|
translationEngines: Array<TranslationEngineDescriptor>;
|
|
translationRequests: Maybe<TranslationRequestsConnection>;
|
|
users: Array<UserDto>;
|
|
};
|
|
|
|
|
|
export type QueryChapterArgs = {
|
|
chapterOrder: Scalars['UnsignedInt']['input'];
|
|
novelId: Scalars['UnsignedInt']['input'];
|
|
preferredLanguage?: Language;
|
|
};
|
|
|
|
|
|
export type QueryNovelsArgs = {
|
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
before?: InputMaybe<Scalars['String']['input']>;
|
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
order?: InputMaybe<Array<NovelDtoSortInput>>;
|
|
preferredLanguage?: Language;
|
|
where?: InputMaybe<NovelDtoFilterInput>;
|
|
};
|
|
|
|
|
|
export type QueryTranslationEnginesArgs = {
|
|
order?: InputMaybe<Array<TranslationEngineDescriptorSortInput>>;
|
|
where?: InputMaybe<TranslationEngineDescriptorFilterInput>;
|
|
};
|
|
|
|
|
|
export type QueryTranslationRequestsArgs = {
|
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
before?: InputMaybe<Scalars['String']['input']>;
|
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
order?: InputMaybe<Array<TranslationRequestDtoSortInput>>;
|
|
where?: InputMaybe<TranslationRequestDtoFilterInput>;
|
|
};
|
|
|
|
export type RegisterUserInput = {
|
|
email: Scalars['String']['input'];
|
|
inviterOAuthProviderId?: InputMaybe<Scalars['String']['input']>;
|
|
oAuthProviderId: Scalars['String']['input'];
|
|
username: Scalars['String']['input'];
|
|
};
|
|
|
|
export type RegisterUserPayload = {
|
|
userDto: Maybe<UserDto>;
|
|
};
|
|
|
|
export type RunJobError = JobPersistenceError;
|
|
|
|
export type RunJobInput = {
|
|
jobKey: Scalars['String']['input'];
|
|
};
|
|
|
|
export type RunJobPayload = {
|
|
boolean: Maybe<Scalars['Boolean']['output']>;
|
|
errors: Maybe<Array<RunJobError>>;
|
|
};
|
|
|
|
export type ScheduleEventJobError = DuplicateNameError | FormatError;
|
|
|
|
export type ScheduleEventJobInput = {
|
|
cronSchedule: Scalars['String']['input'];
|
|
description: Scalars['String']['input'];
|
|
eventData: Scalars['String']['input'];
|
|
eventType: Scalars['String']['input'];
|
|
key: Scalars['String']['input'];
|
|
};
|
|
|
|
export type ScheduleEventJobPayload = {
|
|
errors: Maybe<Array<ScheduleEventJobError>>;
|
|
schedulerJob: Maybe<SchedulerJob>;
|
|
};
|
|
|
|
export type SchedulerJob = {
|
|
cronSchedule: Array<Scalars['String']['output']>;
|
|
description: Scalars['String']['output'];
|
|
jobData: Array<KeyValuePairOfStringAndString>;
|
|
jobKey: JobKey;
|
|
jobTypeName: Scalars['String']['output'];
|
|
};
|
|
|
|
export const SortEnumType = {
|
|
Asc: 'ASC',
|
|
Desc: 'DESC'
|
|
} as const;
|
|
|
|
export type SortEnumType = typeof SortEnumType[keyof typeof SortEnumType];
|
|
export type SourceDto = {
|
|
createdTime: Scalars['Instant']['output'];
|
|
id: Scalars['UnsignedInt']['output'];
|
|
key: Scalars['String']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
name: Scalars['String']['output'];
|
|
url: Scalars['String']['output'];
|
|
};
|
|
|
|
export type SourceDtoFilterInput = {
|
|
and?: InputMaybe<Array<SourceDtoFilterInput>>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
id?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
key?: InputMaybe<StringOperationFilterInput>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
name?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<SourceDtoFilterInput>>;
|
|
url?: InputMaybe<StringOperationFilterInput>;
|
|
};
|
|
|
|
export type SourceDtoSortInput = {
|
|
createdTime?: InputMaybe<SortEnumType>;
|
|
id?: InputMaybe<SortEnumType>;
|
|
key?: InputMaybe<SortEnumType>;
|
|
lastUpdatedTime?: InputMaybe<SortEnumType>;
|
|
name?: InputMaybe<SortEnumType>;
|
|
url?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export type StringOperationFilterInput = {
|
|
and?: InputMaybe<Array<StringOperationFilterInput>>;
|
|
contains?: InputMaybe<Scalars['String']['input']>;
|
|
endsWith?: InputMaybe<Scalars['String']['input']>;
|
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
ncontains?: InputMaybe<Scalars['String']['input']>;
|
|
nendsWith?: InputMaybe<Scalars['String']['input']>;
|
|
neq?: InputMaybe<Scalars['String']['input']>;
|
|
nin?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
nstartsWith?: InputMaybe<Scalars['String']['input']>;
|
|
or?: InputMaybe<Array<StringOperationFilterInput>>;
|
|
startsWith?: InputMaybe<Scalars['String']['input']>;
|
|
};
|
|
|
|
export const TagType = {
|
|
External: 'EXTERNAL',
|
|
Genre: 'GENRE',
|
|
System: 'SYSTEM',
|
|
UserDefined: 'USER_DEFINED'
|
|
} as const;
|
|
|
|
export type TagType = typeof TagType[keyof typeof TagType];
|
|
export type TagTypeOperationFilterInput = {
|
|
eq?: InputMaybe<TagType>;
|
|
in?: InputMaybe<Array<TagType>>;
|
|
neq?: InputMaybe<TagType>;
|
|
nin?: InputMaybe<Array<TagType>>;
|
|
};
|
|
|
|
export type TranslateTextInput = {
|
|
from: Language;
|
|
text: Scalars['String']['input'];
|
|
to: Language;
|
|
translationEngineKey: Scalars['String']['input'];
|
|
};
|
|
|
|
export type TranslateTextPayload = {
|
|
translationResult: Maybe<TranslationResult>;
|
|
};
|
|
|
|
export type TranslationEngineDescriptor = {
|
|
displayName: Scalars['String']['output'];
|
|
key: Scalars['String']['output'];
|
|
};
|
|
|
|
export type TranslationEngineDescriptorFilterInput = {
|
|
and?: InputMaybe<Array<TranslationEngineDescriptorFilterInput>>;
|
|
displayName?: InputMaybe<StringOperationFilterInput>;
|
|
key?: InputMaybe<StringOperationFilterInput>;
|
|
or?: InputMaybe<Array<TranslationEngineDescriptorFilterInput>>;
|
|
};
|
|
|
|
export type TranslationEngineDescriptorSortInput = {
|
|
displayName?: InputMaybe<SortEnumType>;
|
|
key?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export type TranslationRequestDto = {
|
|
billedCharacterCount: Scalars['UnsignedInt']['output'];
|
|
createdTime: Scalars['Instant']['output'];
|
|
from: Language;
|
|
id: Scalars['UUID']['output'];
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
originalText: Scalars['String']['output'];
|
|
status: TranslationRequestStatus;
|
|
to: Language;
|
|
translatedText: Maybe<Scalars['String']['output']>;
|
|
translationEngineKey: Scalars['String']['output'];
|
|
};
|
|
|
|
export type TranslationRequestDtoFilterInput = {
|
|
and?: InputMaybe<Array<TranslationRequestDtoFilterInput>>;
|
|
billedCharacterCount?: InputMaybe<UnsignedIntOperationFilterInputType>;
|
|
createdTime?: InputMaybe<InstantFilterInput>;
|
|
from?: InputMaybe<LanguageOperationFilterInput>;
|
|
id?: InputMaybe<UuidOperationFilterInput>;
|
|
lastUpdatedTime?: InputMaybe<InstantFilterInput>;
|
|
or?: InputMaybe<Array<TranslationRequestDtoFilterInput>>;
|
|
originalText?: InputMaybe<StringOperationFilterInput>;
|
|
status?: InputMaybe<TranslationRequestStatusOperationFilterInput>;
|
|
to?: InputMaybe<LanguageOperationFilterInput>;
|
|
translatedText?: InputMaybe<StringOperationFilterInput>;
|
|
translationEngineKey?: InputMaybe<StringOperationFilterInput>;
|
|
};
|
|
|
|
export type TranslationRequestDtoSortInput = {
|
|
billedCharacterCount?: InputMaybe<SortEnumType>;
|
|
createdTime?: InputMaybe<SortEnumType>;
|
|
from?: InputMaybe<SortEnumType>;
|
|
id?: InputMaybe<SortEnumType>;
|
|
lastUpdatedTime?: InputMaybe<SortEnumType>;
|
|
originalText?: InputMaybe<SortEnumType>;
|
|
status?: InputMaybe<SortEnumType>;
|
|
to?: InputMaybe<SortEnumType>;
|
|
translatedText?: InputMaybe<SortEnumType>;
|
|
translationEngineKey?: InputMaybe<SortEnumType>;
|
|
};
|
|
|
|
export const TranslationRequestStatus = {
|
|
Failed: 'FAILED',
|
|
Pending: 'PENDING',
|
|
Success: 'SUCCESS'
|
|
} as const;
|
|
|
|
export type TranslationRequestStatus = typeof TranslationRequestStatus[keyof typeof TranslationRequestStatus];
|
|
export type TranslationRequestStatusOperationFilterInput = {
|
|
eq?: InputMaybe<TranslationRequestStatus>;
|
|
in?: InputMaybe<Array<TranslationRequestStatus>>;
|
|
neq?: InputMaybe<TranslationRequestStatus>;
|
|
nin?: InputMaybe<Array<TranslationRequestStatus>>;
|
|
};
|
|
|
|
/** A connection to a list of items. */
|
|
export type TranslationRequestsConnection = {
|
|
/** A list of edges. */
|
|
edges: Maybe<Array<TranslationRequestsEdge>>;
|
|
/** A flattened list of the nodes. */
|
|
nodes: Maybe<Array<TranslationRequestDto>>;
|
|
/** Information to aid in pagination. */
|
|
pageInfo: PageInfo;
|
|
};
|
|
|
|
/** An edge in a connection. */
|
|
export type TranslationRequestsEdge = {
|
|
/** A cursor for use in pagination. */
|
|
cursor: Scalars['String']['output'];
|
|
/** The item at the end of the edge. */
|
|
node: TranslationRequestDto;
|
|
};
|
|
|
|
export type TranslationResult = {
|
|
billedCharacterCount: Scalars['UnsignedInt']['output'];
|
|
from: Language;
|
|
originalText: Scalars['String']['output'];
|
|
status: TranslationRequestStatus;
|
|
to: Language;
|
|
translatedText: Maybe<Scalars['String']['output']>;
|
|
translationEngineKey: Scalars['String']['output'];
|
|
};
|
|
|
|
export type UnsignedIntOperationFilterInputType = {
|
|
eq?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
gt?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
gte?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
in?: InputMaybe<Array<InputMaybe<Scalars['UnsignedInt']['input']>>>;
|
|
lt?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
lte?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
neq?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
ngt?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
ngte?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
nin?: InputMaybe<Array<InputMaybe<Scalars['UnsignedInt']['input']>>>;
|
|
nlt?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
nlte?: InputMaybe<Scalars['UnsignedInt']['input']>;
|
|
};
|
|
|
|
export type UserDto = {
|
|
createdTime: Scalars['Instant']['output'];
|
|
disabled: Scalars['Boolean']['output'];
|
|
email: Scalars['String']['output'];
|
|
id: Scalars['UUID']['output'];
|
|
inviter: Maybe<UserDto>;
|
|
lastUpdatedTime: Scalars['Instant']['output'];
|
|
username: Scalars['String']['output'];
|
|
};
|
|
|
|
export type UuidOperationFilterInput = {
|
|
eq?: InputMaybe<Scalars['UUID']['input']>;
|
|
gt?: InputMaybe<Scalars['UUID']['input']>;
|
|
gte?: InputMaybe<Scalars['UUID']['input']>;
|
|
in?: InputMaybe<Array<InputMaybe<Scalars['UUID']['input']>>>;
|
|
lt?: InputMaybe<Scalars['UUID']['input']>;
|
|
lte?: InputMaybe<Scalars['UUID']['input']>;
|
|
neq?: InputMaybe<Scalars['UUID']['input']>;
|
|
ngt?: InputMaybe<Scalars['UUID']['input']>;
|
|
ngte?: InputMaybe<Scalars['UUID']['input']>;
|
|
nin?: InputMaybe<Array<InputMaybe<Scalars['UUID']['input']>>>;
|
|
nlt?: InputMaybe<Scalars['UUID']['input']>;
|
|
nlte?: InputMaybe<Scalars['UUID']['input']>;
|
|
};
|
|
|
|
export type ImportNovelMutationVariables = Exact<{
|
|
input: ImportNovelInput;
|
|
}>;
|
|
|
|
|
|
export type ImportNovelMutation = { importNovel: { novelUpdateRequestedEvent: { novelUrl: string } | null } };
|
|
|
|
export type GetChapterQueryVariables = Exact<{
|
|
novelId: Scalars['UnsignedInt']['input'];
|
|
chapterOrder: Scalars['UnsignedInt']['input'];
|
|
}>;
|
|
|
|
|
|
export type GetChapterQuery = { chapter: { id: any, order: any, name: string, body: string, url: string | null, revision: any, createdTime: any, lastUpdatedTime: any, novelId: any, novelName: string, totalChapters: number, prevChapterOrder: any | null, nextChapterOrder: any | null, images: Array<{ id: any, newPath: string | null }> } | null };
|
|
|
|
export type NovelQueryVariables = Exact<{
|
|
id: Scalars['UnsignedInt']['input'];
|
|
}>;
|
|
|
|
|
|
export type NovelQuery = { novels: { nodes: Array<{ id: any, name: string, description: string, url: string, rawLanguage: Language, rawStatus: NovelStatus, statusOverride: NovelStatus | null, externalId: string, createdTime: any, lastUpdatedTime: any, author: { id: any, name: string, externalUrl: string | null }, source: { id: any, name: string, key: string, url: string }, coverImage: { newPath: string | null } | null, tags: Array<{ id: any, key: string, displayName: string, tagType: TagType }>, chapters: Array<{ id: any, order: any, name: string, lastUpdatedTime: any, images: Array<{ id: any, newPath: string | null }> }> }> | null } | null };
|
|
|
|
export type NovelsQueryVariables = Exact<{
|
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
where?: InputMaybe<NovelDtoFilterInput>;
|
|
}>;
|
|
|
|
|
|
export type NovelsQuery = { novels: { edges: Array<{ cursor: string, node: { id: any, url: string, name: string, description: string, rawStatus: NovelStatus, lastUpdatedTime: any, coverImage: { newPath: string | null } | null, chapters: Array<{ order: any, name: string }>, tags: Array<{ key: string, displayName: string }> } }> | null, pageInfo: { hasNextPage: boolean, endCursor: string | null } } | null };
|
|
|
|
|
|
export const ImportNovelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ImportNovel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ImportNovelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"importNovel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"novelUpdateRequestedEvent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"novelUrl"}}]}}]}}]}}]} as unknown as DocumentNode<ImportNovelMutation, ImportNovelMutationVariables>;
|
|
export const GetChapterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetChapter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"novelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UnsignedInt"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chapterOrder"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UnsignedInt"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chapter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"novelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"novelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"chapterOrder"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chapterOrder"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"createdTime"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedTime"}},{"kind":"Field","name":{"kind":"Name","value":"images"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"newPath"}}]}},{"kind":"Field","name":{"kind":"Name","value":"novelId"}},{"kind":"Field","name":{"kind":"Name","value":"novelName"}},{"kind":"Field","name":{"kind":"Name","value":"totalChapters"}},{"kind":"Field","name":{"kind":"Name","value":"prevChapterOrder"}},{"kind":"Field","name":{"kind":"Name","value":"nextChapterOrder"}}]}}]}}]} as unknown as DocumentNode<GetChapterQuery, GetChapterQueryVariables>;
|
|
export const NovelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Novel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UnsignedInt"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"novels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"rawLanguage"}},{"kind":"Field","name":{"kind":"Name","value":"rawStatus"}},{"kind":"Field","name":{"kind":"Name","value":"statusOverride"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"createdTime"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedTime"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"externalUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"newPath"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"tagType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"chapters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedTime"}},{"kind":"Field","name":{"kind":"Name","value":"images"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"newPath"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<NovelQuery, NovelQueryVariables>;
|
|
export const NovelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Novels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"NovelDtoFilterInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"novels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"newPath"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rawStatus"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedTime"}},{"kind":"Field","name":{"kind":"Name","value":"chapters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode<NovelsQuery, NovelsQueryVariables>; |