parent
10c3f126f0
commit
5b11b70370
32 changed files with 243 additions and 6575 deletions
|
@ -1,5 +1,4 @@
|
|||
type Mutation {
|
||||
torrentDaemon: TorrentDaemonMutation @resolver
|
||||
qbitTorrentDaemon: QBitTorrentDaemonMutation @resolver
|
||||
|
||||
uploadFile(dir: String!, file: Upload!): Boolean!
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
type Subscription {
|
||||
taskProgress(taskID: ID!): Progress
|
||||
torrentDownloadUpdates: TorrentProgress
|
||||
}
|
||||
|
||||
|
||||
type TorrentProgress implements Progress {
|
||||
torrent: Torrent!
|
||||
current: Int!
|
||||
total: Int!
|
||||
taskProgress(taskID: ID!): Progress
|
||||
}
|
||||
|
||||
interface Progress {
|
||||
current: Int!
|
||||
total: Int!
|
||||
}
|
||||
current: Int!
|
||||
total: Int!
|
||||
}
|
||||
|
|
|
@ -33,15 +33,3 @@ type ArchiveFS implements Dir & FsEntry {
|
|||
|
||||
size: Int!
|
||||
}
|
||||
|
||||
type TorrentFS implements Dir & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
entries: [FsEntry!]! @resolver
|
||||
}
|
||||
|
||||
type TorrentFileEntry implements File & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
size: Int!
|
||||
}
|
||||
|
|
4
graphql/types/progress.graphql
Normal file
4
graphql/types/progress.graphql
Normal file
|
@ -0,0 +1,4 @@
|
|||
interface Progress {
|
||||
current: Int!
|
||||
total: Int!
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue