Skip to content

Commit

Permalink
new schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Aug 3, 2023
1 parent a367845 commit d292028
Showing 1 changed file with 154 additions and 7 deletions.
161 changes: 154 additions & 7 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ scalar Cursor
scalar LongString
"A file part in a multipart request"
scalar Upload
type AboutPayload {
buildTime: LongString!
buildType: String!
discord: String!
github: String!
name: String!
revision: String!
version: String!
}
type BackupRestoreStatus {
mangaProgress: Int!
state: BackupRestoreState!
Expand Down Expand Up @@ -86,6 +95,15 @@ type CheckBoxPreference {
summary: String
title: String!
}
type CheckForUpdatesPayload {
channel: String!
tag: String!
url: String!
}
type ClearDownloaderPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type CreateBackupPayload {
clientMutationId: String
url: String!
Expand All @@ -109,6 +127,14 @@ type DeleteChapterMetaPayload {
clientMutationId: String
meta: ChapterMetaType
}
type DeleteDownloadedChapterPayload {
chapters: ChapterType!
clientMutationId: String
}
type DeleteDownloadedChaptersPayload {
chapters: [ChapterType!]!
clientMutationId: String
}
type DeleteGlobalMetaPayload {
clientMutationId: String
meta: GlobalMetaType
Expand All @@ -118,6 +144,14 @@ type DeleteMangaMetaPayload {
manga: MangaType!
meta: MangaMetaType
}
type DequeueChapterDownloadPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type DequeueChapterDownloadsPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type DownloadEdge implements Edge {
cursor: Cursor!
node: DownloadType!
Expand All @@ -128,9 +162,11 @@ type DownloadNodeList implements NodeList {
pageInfo: PageInfo!
totalCount: Int!
}
type DownloadStatus {
queue: [DownloadType!]!
state: DownloaderState!
}
type DownloadType {
chapterId: Int!
mangaId: Int!
progress: Float!
state: DownloadState!
tries: Int!
Expand All @@ -147,6 +183,14 @@ type EditTextPreference {
text: String
title: String
}
type EnqueueChapterDownloadPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type EnqueueChapterDownloadsPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type ExtensionEdge implements Edge {
cursor: Cursor!
node: ExtensionType!
Expand Down Expand Up @@ -292,6 +336,16 @@ type Mutation {
setChapterMeta(input: SetChapterMetaInput!): SetChapterMetaPayload!
updateChapter(input: UpdateChapterInput!): UpdateChapterPayload!
updateChapters(input: UpdateChaptersInput!): UpdateChaptersPayload!
clearDownloader(input: ClearDownloaderInput!): ClearDownloaderPayload!
deleteDownloadedChapter(input: DeleteDownloadedChapterInput!): DeleteDownloadedChapterPayload!
deleteDownloadedChapters(input: DeleteDownloadedChaptersInput!): DeleteDownloadedChaptersPayload!
dequeueChapterDownload(input: DequeueChapterDownloadInput!): DequeueChapterDownloadPayload!
dequeueChapterDownloads(input: DequeueChapterDownloadsInput!): DequeueChapterDownloadsPayload!
enqueueChapterDownload(input: EnqueueChapterDownloadInput!): EnqueueChapterDownloadPayload!
enqueueChapterDownloads(input: EnqueueChapterDownloadsInput!): EnqueueChapterDownloadsPayload!
reorderChapterDownload(input: ReorderChapterDownloadInput!): ReorderChapterDownloadPayload!
startDownloader(input: StartDownloaderInput!): StartDownloaderPayload!
stopDownloader(input: StopDownloaderInput!): StopDownloaderPayload!
fetchExtensions(input: FetchExtensionsInput!): FetchExtensionsPayload!
updateExtension(input: UpdateExtensionInput!): UpdateExtensionPayload!
updateExtensions(input: UpdateExtensionsInput!): UpdateExtensionsPayload!
Expand All @@ -304,6 +358,9 @@ type Mutation {
setGlobalMeta(input: SetGlobalMetaInput!): SetGlobalMetaPayload!
fetchSourceManga(input: FetchSourceMangaInput!): FetchSourceMangaPayload!
updateSourcePreference(input: UpdateSourcePreferenceInput!): UpdateSourcePreferencePayload!
updateCategoryManga(input: UpdateCategoryMangaInput!): UpdateCategoryMangaPayload!
updateLibraryManga(input: UpdateLibraryMangaInput!): UpdateLibraryMangaPayload!
updateStop(input: UpdateStopInput!): UpdateStopPayload!
}
type PageInfo {
"When paginating forwards, the cursor to continue."
Expand All @@ -322,14 +379,22 @@ type Query {
category(id: Int!): CategoryType
chapter(id: Int!): ChapterType
chapters(condition: ChapterConditionInput, filter: ChapterFilterInput, orderBy: ChapterOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ChapterNodeList!
downloadStatus: DownloadStatus!
extension(pkgName: String!): ExtensionType
extensions(condition: ExtensionConditionInput, filter: ExtensionFilterInput, orderBy: ExtensionOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ExtensionNodeList!
about: AboutPayload!
checkForUpdates: [CheckForUpdatesPayload!]!
manga(id: Int!): MangaType
mangas(condition: MangaConditionInput, filter: MangaFilterInput, orderBy: MangaOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): MangaNodeList!
meta(key: String!): GlobalMetaType
metas(condition: MetaConditionInput, filter: MetaFilterInput, orderBy: MetaOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): GlobalMetaNodeList!
source(id: LongString!): SourceType
sources(condition: SourceConditionInput, filter: SourceFilterInput, orderBy: SourceOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): SourceNodeList!
updateStatus: UpdateStatus!
}
type ReorderChapterDownloadPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type RestoreBackupPayload {
clientMutationId: String
Expand Down Expand Up @@ -392,8 +457,17 @@ type SourceType {
manga: MangaNodeList!
preferences: [Preference!]!
}
type StartDownloaderPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type StopDownloaderPayload {
clientMutationId: String
downloadStatus: DownloadStatus!
}
type Subscription {
downloadChanged: DownloadType!
downloadChanged: DownloadStatus!
updateStatusChanged: UpdateStatus!
}
type SwitchPreference {
currentValue: Boolean
Expand All @@ -414,6 +488,10 @@ type UpdateCategoriesPayload {
categories: [CategoryType!]!
clientMutationId: String
}
type UpdateCategoryMangaPayload {
clientMutationId: String
updateStatus: UpdateStatus!
}
type UpdateCategoryOrderPayload {
categories: [CategoryType!]!
clientMutationId: String
Expand All @@ -438,6 +516,10 @@ type UpdateExtensionsPayload {
clientMutationId: String
extensions: [ExtensionType!]!
}
type UpdateLibraryMangaPayload {
clientMutationId: String
updateStatus: UpdateStatus!
}
type UpdateMangaCategoriesPayload {
clientMutationId: String
manga: MangaType!
Expand All @@ -458,6 +540,19 @@ type UpdateSourcePreferencePayload {
clientMutationId: String
preferences: [Preference!]!
}
type UpdateStatus {
completeJobs: UpdateStatusType!
failedJobs: UpdateStatusType!
isRunning: Boolean!
pendingJobs: UpdateStatusType!
runningJobs: UpdateStatusType!
}
type UpdateStatusType {
mangas: MangaNodeList!
}
type UpdateStopPayload {
clientMutationId: String
}
type ValidateBackupResult {
missingSources: [ValidateBackupSource!]!
}
Expand Down Expand Up @@ -508,10 +603,14 @@ enum ChapterOrderBy {
FETCHED_AT
}
enum DownloadState {
Queued
Downloading
Finished
Error
QUEUED
DOWNLOADING
FINISHED
ERROR
}
enum DownloaderState {
STARTED
STOPPED
}
enum ExtensionOrderBy {
PKG_NAME
Expand Down Expand Up @@ -643,6 +742,9 @@ input ChapterMetaTypeInput {
key: String!
value: String!
}
input ClearDownloaderInput {
clientMutationId: String
}
input CreateBackupInput {
clientMutationId: String
includeCategories: Boolean
Expand All @@ -669,6 +771,14 @@ input DeleteChapterMetaInput {
clientMutationId: String
key: String!
}
input DeleteDownloadedChapterInput {
clientMutationId: String
id: Int!
}
input DeleteDownloadedChaptersInput {
clientMutationId: String
ids: [Int!]!
}
input DeleteGlobalMetaInput {
clientMutationId: String
key: String!
Expand All @@ -678,6 +788,22 @@ input DeleteMangaMetaInput {
key: String!
mangaId: Int!
}
input DequeueChapterDownloadInput {
clientMutationId: String
id: Int!
}
input DequeueChapterDownloadsInput {
clientMutationId: String
ids: [Int!]!
}
input EnqueueChapterDownloadInput {
clientMutationId: String
id: Int!
}
input EnqueueChapterDownloadsInput {
clientMutationId: String
ids: [Int!]!
}
input ExtensionConditionInput {
apkName: String
hasUpdate: Boolean
Expand Down Expand Up @@ -849,6 +975,11 @@ input MetaFilterInput {
or: [MetaFilterInput!]
value: StringFilterInput
}
input ReorderChapterDownloadInput {
chapterId: Int!
clientMutationId: String
to: Int!
}
input RestoreBackupInput {
backup: Upload!
clientMutationId: String
Expand Down Expand Up @@ -896,6 +1027,12 @@ input SourcePreferenceChangeInput {
position: Int!
switchState: Boolean
}
input StartDownloaderInput {
clientMutationId: String
}
input StopDownloaderInput {
clientMutationId: String
}
input StringFilterInput {
distinctFrom: String
distinctFromInsensitive: String
Expand Down Expand Up @@ -943,6 +1080,10 @@ input UpdateCategoryInput {
id: Int!
patch: UpdateCategoryPatchInput!
}
input UpdateCategoryMangaInput {
categories: [Int!]!
clientMutationId: String
}
input UpdateCategoryOrderInput {
clientMutationId: String
id: Int!
Expand Down Expand Up @@ -983,6 +1124,9 @@ input UpdateExtensionsInput {
ids: [String!]!
patch: UpdateExtensionPatchInput!
}
input UpdateLibraryMangaInput {
clientMutationId: String
}
input UpdateMangaCategoriesInput {
clientMutationId: String
id: Int!
Expand Down Expand Up @@ -1016,6 +1160,9 @@ input UpdateSourcePreferenceInput {
clientMutationId: String
source: LongString!
}
input UpdateStopInput {
clientMutationId: String
}
input ValidateBackupInput {
backup: Upload!
}
Expand Down

0 comments on commit d292028

Please sign in to comment.