Format generated graphql types

This commit is contained in:
schroda
2026-05-17 12:38:49 +02:00
parent 310bc89322
commit fc4767e819
3 changed files with 6084 additions and 2755 deletions

View File

@@ -6,5 +6,5 @@
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"ignorePatterns": ["src/lib/graphql/generated/**", ".github/**"]
"ignorePatterns": ["src/lib/graphql/generated/apollo-helpers.ts", ".github/**"]
}

View File

@@ -2,15 +2,15 @@ export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
/** 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; }
Cursor: { input: string; output: string; }
Duration: { input: string; output: string; }
LongString: { input: string; output: string; }
Upload: { input: unknown; output: unknown; }
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 };
Cursor: { input: string; output: string };
Duration: { input: string; output: string };
LongString: { input: string; output: string };
Upload: { input: unknown; output: unknown };
};
export type AboutServerPayload = {
@@ -36,7 +36,7 @@ export enum AuthMode {
BasicAuth = 'BASIC_AUTH',
None = 'NONE',
SimpleLogin = 'SIMPLE_LOGIN',
UiLogin = 'UI_LOGIN'
UiLogin = 'UI_LOGIN',
}
export enum BackupRestoreState {
@@ -46,7 +46,7 @@ export enum BackupRestoreState {
RestoringManga = 'RESTORING_MANGA',
RestoringMeta = 'RESTORING_META',
RestoringSettings = 'RESTORING_SETTINGS',
Success = 'SUCCESS'
Success = 'SUCCESS',
}
export type BackupRestoreStatus = {
@@ -114,7 +114,7 @@ export type CategoryFilterInput = {
export enum CategoryJobStatus {
Skipped = 'SKIPPED',
Updating = 'UPDATING'
Updating = 'UPDATING',
}
export type CategoryMetaType = MetaType & {
@@ -142,7 +142,7 @@ export type CategoryNodeList = NodeList & {
export enum CategoryOrderBy {
Id = 'ID',
Name = 'NAME',
Order = 'ORDER'
Order = 'ORDER',
}
export type CategoryOrderInput = {
@@ -171,7 +171,7 @@ export type CategoryUpdateType = {
export enum CbzMediaType {
Compatible = 'COMPATIBLE',
Legacy = 'LEGACY',
Modern = 'MODERN'
Modern = 'MODERN',
}
export type ChapterConditionInput = {
@@ -251,7 +251,7 @@ export enum ChapterOrderBy {
LastReadAt = 'LAST_READ_AT',
Name = 'NAME',
SourceOrder = 'SOURCE_ORDER',
UploadDate = 'UPLOAD_DATE'
UploadDate = 'UPLOAD_DATE',
}
export type ChapterOrderInput = {
@@ -365,7 +365,7 @@ export type CreateCategoryPayload = {
export enum DatabaseType {
H2 = 'H2',
Postgresql = 'POSTGRESQL'
Postgresql = 'POSTGRESQL',
}
export type DeleteCategoryInput = {
@@ -612,7 +612,7 @@ export enum DownloadState {
Downloading = 'DOWNLOADING',
Error = 'ERROR',
Finished = 'FINISHED',
Queued = 'QUEUED'
Queued = 'QUEUED',
}
export type DownloadStatus = {
@@ -645,7 +645,7 @@ export enum DownloadUpdateType {
Position = 'POSITION',
Progress = 'PROGRESS',
Queued = 'QUEUED',
Stopped = 'STOPPED'
Stopped = 'STOPPED',
}
export type DownloadUpdates = {
@@ -660,7 +660,7 @@ export type DownloadUpdates = {
export enum DownloaderState {
Started = 'STARTED',
Stopped = 'STOPPED'
Stopped = 'STOPPED',
}
export type Edge = {
@@ -756,7 +756,7 @@ export type ExtensionNodeList = NodeList & {
export enum ExtensionOrderBy {
ApkName = 'APK_NAME',
Name = 'NAME',
PkgName = 'PKG_NAME'
PkgName = 'PKG_NAME',
}
export type ExtensionOrderInput = {
@@ -846,7 +846,7 @@ export type FetchSourceMangaPayload = {
export enum FetchSourceMangaType {
Latest = 'LATEST',
Popular = 'POPULAR',
Search = 'SEARCH'
Search = 'SEARCH',
}
export type FetchTrackInput = {
@@ -860,7 +860,15 @@ export type FetchTrackPayload = {
trackRecord: TrackRecordType;
};
export type Filter = CheckBoxFilter | GroupFilter | HeaderFilter | SelectFilter | SeparatorFilter | SortFilter | TextFilter | TriStateFilter;
export type Filter =
| CheckBoxFilter
| GroupFilter
| HeaderFilter
| SelectFilter
| SeparatorFilter
| SortFilter
| TextFilter
| TriStateFilter;
export type FilterChangeInput = {
checkBoxState?: InputMaybe<Scalars['Boolean']['input']>;
@@ -905,7 +913,7 @@ export type HeaderFilter = {
export enum IncludeOrExclude {
Exclude = 'EXCLUDE',
Include = 'INCLUDE',
Unset = 'UNSET'
Unset = 'UNSET',
}
export type InstallExternalExtensionInput = {
@@ -953,14 +961,14 @@ export type KoSyncStatusPayload = {
export enum KoreaderSyncChecksumMethod {
Binary = 'BINARY',
Filename = 'FILENAME'
Filename = 'FILENAME',
}
export enum KoreaderSyncConflictStrategy {
Disabled = 'DISABLED',
KeepLocal = 'KEEP_LOCAL',
KeepRemote = 'KEEP_REMOTE',
Prompt = 'PROMPT'
Prompt = 'PROMPT',
}
export enum KoreaderSyncLegacyStrategy {
@@ -968,7 +976,7 @@ export enum KoreaderSyncLegacyStrategy {
Prompt = 'PROMPT',
Receive = 'RECEIVE',
Send = 'SEND',
Silent = 'SILENT'
Silent = 'SILENT',
}
export type LastUpdateTimestampPayload = {
@@ -1135,7 +1143,7 @@ export enum MangaJobStatus {
Failed = 'FAILED',
Pending = 'PENDING',
Running = 'RUNNING',
Skipped = 'SKIPPED'
Skipped = 'SKIPPED',
}
export type MangaMetaType = MetaType & {
@@ -1164,7 +1172,7 @@ export enum MangaOrderBy {
Id = 'ID',
InLibraryAt = 'IN_LIBRARY_AT',
LastFetchedAt = 'LAST_FETCHED_AT',
Title = 'TITLE'
Title = 'TITLE',
}
export type MangaOrderInput = {
@@ -1179,7 +1187,7 @@ export enum MangaStatus {
Ongoing = 'ONGOING',
OnHiatus = 'ON_HIATUS',
PublishingFinished = 'PUBLISHING_FINISHED',
Unknown = 'UNKNOWN'
Unknown = 'UNKNOWN',
}
export type MangaStatusFilterInput = {
@@ -1271,7 +1279,7 @@ export type MetaInput = {
export enum MetaOrderBy {
Key = 'KEY',
Value = 'VALUE'
Value = 'VALUE',
}
export type MetaOrderInput = {
@@ -1378,377 +1386,319 @@ export type Mutation = {
updateWebUI?: Maybe<WebUiUpdatePayload>;
};
export type MutationBindTrackArgs = {
input: BindTrackInput;
};
export type MutationClearCachedImagesArgs = {
input: ClearCachedImagesInput;
};
export type MutationClearDownloaderArgs = {
input: ClearDownloaderInput;
};
export type MutationConnectKoSyncAccountArgs = {
input: ConnectKoSyncAccountInput;
};
export type MutationCreateBackupArgs = {
input?: InputMaybe<CreateBackupInput>;
};
export type MutationCreateCategoryArgs = {
input: CreateCategoryInput;
};
export type MutationDeleteCategoryArgs = {
input: DeleteCategoryInput;
};
export type MutationDeleteCategoryMetaArgs = {
input: DeleteCategoryMetaInput;
};
export type MutationDeleteCategoryMetasArgs = {
input: DeleteCategoryMetasInput;
};
export type MutationDeleteChapterMetaArgs = {
input: DeleteChapterMetaInput;
};
export type MutationDeleteChapterMetasArgs = {
input: DeleteChapterMetasInput;
};
export type MutationDeleteDownloadedChapterArgs = {
input: DeleteDownloadedChapterInput;
};
export type MutationDeleteDownloadedChaptersArgs = {
input: DeleteDownloadedChaptersInput;
};
export type MutationDeleteGlobalMetaArgs = {
input: DeleteGlobalMetaInput;
};
export type MutationDeleteGlobalMetasArgs = {
input: DeleteGlobalMetasInput;
};
export type MutationDeleteMangaMetaArgs = {
input: DeleteMangaMetaInput;
};
export type MutationDeleteMangaMetasArgs = {
input: DeleteMangaMetasInput;
};
export type MutationDeleteSourceMetaArgs = {
input: DeleteSourceMetaInput;
};
export type MutationDeleteSourceMetasArgs = {
input: DeleteSourceMetasInput;
};
export type MutationDequeueChapterDownloadArgs = {
input: DequeueChapterDownloadInput;
};
export type MutationDequeueChapterDownloadsArgs = {
input: DequeueChapterDownloadsInput;
};
export type MutationEnqueueChapterDownloadArgs = {
input: EnqueueChapterDownloadInput;
};
export type MutationEnqueueChapterDownloadsArgs = {
input: EnqueueChapterDownloadsInput;
};
export type MutationFetchChapterPagesArgs = {
input: FetchChapterPagesInput;
};
export type MutationFetchChaptersArgs = {
input: FetchChaptersInput;
};
export type MutationFetchExtensionsArgs = {
input: FetchExtensionsInput;
};
export type MutationFetchMangaArgs = {
input: FetchMangaInput;
};
export type MutationFetchSourceMangaArgs = {
input: FetchSourceMangaInput;
};
export type MutationFetchTrackArgs = {
input: FetchTrackInput;
};
export type MutationInstallExternalExtensionArgs = {
input: InstallExternalExtensionInput;
};
export type MutationLoginArgs = {
input: LoginInput;
};
export type MutationLoginTrackerCredentialsArgs = {
input: LoginTrackerCredentialsInput;
};
export type MutationLoginTrackerOAuthArgs = {
input: LoginTrackerOAuthInput;
};
export type MutationLogoutKoSyncAccountArgs = {
input: LogoutKoSyncAccountInput;
};
export type MutationLogoutTrackerArgs = {
input: LogoutTrackerInput;
};
export type MutationPullKoSyncProgressArgs = {
input: PullKoSyncProgressInput;
};
export type MutationPushKoSyncProgressArgs = {
input: PushKoSyncProgressInput;
};
export type MutationRefreshTokenArgs = {
input: RefreshTokenInput;
};
export type MutationReorderChapterDownloadArgs = {
input: ReorderChapterDownloadInput;
};
export type MutationResetSettingsArgs = {
input: ResetSettingsInput;
};
export type MutationRestoreBackupArgs = {
input: RestoreBackupInput;
};
export type MutationSetCategoryMetaArgs = {
input: SetCategoryMetaInput;
};
export type MutationSetCategoryMetasArgs = {
input: SetCategoryMetasInput;
};
export type MutationSetChapterMetaArgs = {
input: SetChapterMetaInput;
};
export type MutationSetChapterMetasArgs = {
input: SetChapterMetasInput;
};
export type MutationSetGlobalMetaArgs = {
input: SetGlobalMetaInput;
};
export type MutationSetGlobalMetasArgs = {
input: SetGlobalMetasInput;
};
export type MutationSetMangaMetaArgs = {
input: SetMangaMetaInput;
};
export type MutationSetMangaMetasArgs = {
input: SetMangaMetasInput;
};
export type MutationSetSettingsArgs = {
input: SetSettingsInput;
};
export type MutationSetSourceMetaArgs = {
input: SetSourceMetaInput;
};
export type MutationSetSourceMetasArgs = {
input: SetSourceMetasInput;
};
export type MutationStartDownloaderArgs = {
input: StartDownloaderInput;
};
export type MutationStopDownloaderArgs = {
input: StopDownloaderInput;
};
export type MutationTrackProgressArgs = {
input: TrackProgressInput;
};
export type MutationUnbindTrackArgs = {
input: UnbindTrackInput;
};
export type MutationUpdateCategoriesArgs = {
input: UpdateCategoriesInput;
};
export type MutationUpdateCategoryArgs = {
input: UpdateCategoryInput;
};
export type MutationUpdateCategoryMangaArgs = {
input: UpdateCategoryMangaInput;
};
export type MutationUpdateCategoryOrderArgs = {
input: UpdateCategoryOrderInput;
};
export type MutationUpdateChapterArgs = {
input: UpdateChapterInput;
};
export type MutationUpdateChaptersArgs = {
input: UpdateChaptersInput;
};
export type MutationUpdateExtensionArgs = {
input: UpdateExtensionInput;
};
export type MutationUpdateExtensionsArgs = {
input: UpdateExtensionsInput;
};
export type MutationUpdateLibraryArgs = {
input: UpdateLibraryInput;
};
export type MutationUpdateLibraryMangaArgs = {
input: UpdateLibraryMangaInput;
};
export type MutationUpdateMangaArgs = {
input: UpdateMangaInput;
};
export type MutationUpdateMangaCategoriesArgs = {
input: UpdateMangaCategoriesInput;
};
export type MutationUpdateMangasArgs = {
input: UpdateMangasInput;
};
export type MutationUpdateMangasCategoriesArgs = {
input: UpdateMangasCategoriesInput;
};
export type MutationUpdateSourcePreferenceArgs = {
input: UpdateSourcePreferenceInput;
};
export type MutationUpdateStopArgs = {
input: UpdateStopInput;
};
export type MutationUpdateTrackArgs = {
input: UpdateTrackInput;
};
export type MutationUpdateWebUiArgs = {
input: WebUiUpdateInput;
};
export type Node = CategoryMetaType | CategoryType | ChapterMetaType | ChapterType | DownloadType | DownloadUpdate | ExtensionType | GlobalMetaType | MangaMetaType | MangaType | PartialSettingsType | SettingsType | SourceMetaType | SourceType | TrackRecordType | TrackerType;
export type Node =
| CategoryMetaType
| CategoryType
| ChapterMetaType
| ChapterType
| DownloadType
| DownloadUpdate
| ExtensionType
| GlobalMetaType
| MangaMetaType
| MangaType
| PartialSettingsType
| SettingsType
| SourceMetaType
| SourceType
| TrackRecordType
| TrackerType;
export type NodeList = {
/** A list of edges which contains the [T] and cursor to aid in pagination. */
@@ -1960,7 +1910,12 @@ export type PartialSettingsTypeInput = {
webUIUpdateCheckInterval?: InputMaybe<Scalars['Float']['input']>;
};
export type Preference = CheckBoxPreference | EditTextPreference | ListPreference | MultiSelectListPreference | SwitchPreference;
export type Preference =
| CheckBoxPreference
| EditTextPreference
| ListPreference
| MultiSelectListPreference
| SwitchPreference;
export type PullKoSyncProgressInput = {
chapterId: Scalars['Int']['input'];
@@ -2021,7 +1976,6 @@ export type Query = {
validateBackup: ValidateBackupResult;
};
export type QueryCategoriesArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2033,17 +1987,14 @@ export type QueryCategoriesArgs = {
order?: InputMaybe<Array<CategoryOrderInput>>;
};
export type QueryCategoryArgs = {
id: Scalars['Int']['input'];
};
export type QueryChapterArgs = {
id: Scalars['Int']['input'];
};
export type QueryChaptersArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2055,12 +2006,10 @@ export type QueryChaptersArgs = {
order?: InputMaybe<Array<ChapterOrderInput>>;
};
export type QueryExtensionArgs = {
pkgName: Scalars['String']['input'];
};
export type QueryExtensionsArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2072,12 +2021,10 @@ export type QueryExtensionsArgs = {
order?: InputMaybe<Array<ExtensionOrderInput>>;
};
export type QueryMangaArgs = {
id: Scalars['Int']['input'];
};
export type QueryMangasArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2089,12 +2036,10 @@ export type QueryMangasArgs = {
order?: InputMaybe<Array<MangaOrderInput>>;
};
export type QueryMetaArgs = {
key: Scalars['String']['input'];
};
export type QueryMetasArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2106,22 +2051,18 @@ export type QueryMetasArgs = {
order?: InputMaybe<Array<MetaOrderInput>>;
};
export type QueryRestoreStatusArgs = {
id: Scalars['String']['input'];
};
export type QuerySearchTrackerArgs = {
input: SearchTrackerInput;
};
export type QuerySourceArgs = {
id: Scalars['LongString']['input'];
};
export type QuerySourcesArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2133,12 +2074,10 @@ export type QuerySourcesArgs = {
order?: InputMaybe<Array<SourceOrderInput>>;
};
export type QueryTrackRecordArgs = {
id: Scalars['Int']['input'];
};
export type QueryTrackRecordsArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2150,12 +2089,10 @@ export type QueryTrackRecordsArgs = {
order?: InputMaybe<Array<TrackRecordOrderInput>>;
};
export type QueryTrackerArgs = {
id: Scalars['Int']['input'];
};
export type QueryTrackersArgs = {
after?: InputMaybe<Scalars['Cursor']['input']>;
before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2166,7 +2103,6 @@ export type QueryTrackersArgs = {
order?: InputMaybe<Array<TrackerOrderInput>>;
};
export type QueryValidateBackupArgs = {
input: ValidateBackupInput;
};
@@ -2638,7 +2574,7 @@ export enum SortOrder {
AscNullsLast = 'ASC_NULLS_LAST',
Desc = 'DESC',
DescNullsFirst = 'DESC_NULLS_FIRST',
DescNullsLast = 'DESC_NULLS_LAST'
DescNullsLast = 'DESC_NULLS_LAST',
}
export type SortSelection = {
@@ -2700,7 +2636,7 @@ export type SourceNodeList = NodeList & {
export enum SourceOrderBy {
Id = 'ID',
Lang = 'LANG',
Name = 'NAME'
Name = 'NAME',
}
export type SourceOrderInput = {
@@ -2842,12 +2778,10 @@ export type Subscription = {
webUIUpdateStatusChange: WebUiUpdateStatus;
};
export type SubscriptionDownloadStatusChangedArgs = {
input: DownloadChangedInput;
};
export type SubscriptionLibraryUpdateStatusChangedArgs = {
input: LibraryUpdateStatusChangedInput;
};
@@ -2948,7 +2882,7 @@ export enum TrackRecordOrderBy {
StartDate = 'START_DATE',
Title = 'TITLE',
TotalChapters = 'TOTAL_CHAPTERS',
TrackerId = 'TRACKER_ID'
TrackerId = 'TRACKER_ID',
}
export type TrackRecordOrderInput = {
@@ -3031,7 +2965,7 @@ export type TrackerNodeList = NodeList & {
export enum TrackerOrderBy {
Id = 'ID',
IsLoggedIn = 'IS_LOGGED_IN',
Name = 'NAME'
Name = 'NAME',
}
export type TrackerOrderInput = {
@@ -3058,7 +2992,7 @@ export type TrackerType = {
export enum TriState {
Exclude = 'EXCLUDE',
Ignore = 'IGNORE',
Include = 'INCLUDE'
Include = 'INCLUDE',
}
export type TriStateFilter = {
@@ -3290,7 +3224,7 @@ export enum UpdateState {
Downloading = 'DOWNLOADING',
Error = 'ERROR',
Finished = 'FINISHED',
Idle = 'IDLE'
Idle = 'IDLE',
}
export type UpdateStatus = {
@@ -3326,7 +3260,7 @@ export type UpdateStopPayload = {
export enum UpdateStrategy {
AlwaysUpdate = 'ALWAYS_UPDATE',
OnlyFetchOnce = 'ONLY_FETCH_ONCE'
OnlyFetchOnce = 'ONLY_FETCH_ONCE',
}
export type UpdateTrackInput = {
@@ -3393,18 +3327,18 @@ export type ValidateBackupTracker = {
export enum WebUiChannel {
Bundled = 'BUNDLED',
Preview = 'PREVIEW',
Stable = 'STABLE'
Stable = 'STABLE',
}
export enum WebUiFlavor {
Custom = 'CUSTOM',
Vui = 'VUI',
Webui = 'WEBUI'
Webui = 'WEBUI',
}
export enum WebUiInterface {
Browser = 'BROWSER',
Electron = 'ELECTRON'
Electron = 'ELECTRON',
}
export type WebUiUpdateCheck = {

File diff suppressed because it is too large Load Diff