parent
10c3f126f0
commit
5b11b70370
32 changed files with 243 additions and 6575 deletions
ui/lib/api
|
@ -9,10 +9,6 @@ type ArchiveFS implements Dir & FsEntry {
|
|||
input BooleanFilter @oneOf {
|
||||
eq: Boolean
|
||||
}
|
||||
type CleanupResponse {
|
||||
count: Int!
|
||||
list: [String!]!
|
||||
}
|
||||
scalar DateTime
|
||||
input DateTimeFilter @oneOf {
|
||||
eq: DateTime
|
||||
|
@ -25,9 +21,6 @@ interface Dir implements FsEntry {
|
|||
name: String!
|
||||
entries: [FsEntry!]!
|
||||
}
|
||||
type DownloadTorrentResponse {
|
||||
task: Task
|
||||
}
|
||||
interface File implements FsEntry {
|
||||
name: String!
|
||||
size: Int!
|
||||
|
@ -44,7 +37,6 @@ input IntFilter @oneOf {
|
|||
in: [Int!]
|
||||
}
|
||||
type Mutation {
|
||||
torrentDaemon: TorrentDaemonMutation @resolver
|
||||
qbitTorrentDaemon: QBitTorrentDaemonMutation @resolver
|
||||
uploadFile(dir: String!, file: Upload!): Boolean!
|
||||
dedupeStorage: Int!
|
||||
|
@ -66,7 +58,7 @@ type QBitCleanupUnregistredResponse {
|
|||
hashes: [String!]!
|
||||
}
|
||||
input QBitTorrentDaemonFilter {
|
||||
multipleSources: Boolean
|
||||
sourcesCount: IntFilter
|
||||
}
|
||||
type QBitTorrentDaemonMutation {
|
||||
cleanup(run: Boolean!): QBitCleanupResponse! @resolver
|
||||
|
@ -81,7 +73,6 @@ type QTorrent {
|
|||
sourceFiles: [String!]! @resolver
|
||||
}
|
||||
type Query {
|
||||
torrentDaemon: TorrentDaemonQuery @resolver
|
||||
qbitTorrentDaemon: QBitTorrentDaemonQuery @resolver
|
||||
fsEntry(path: String!): FsEntry
|
||||
}
|
||||
|
@ -108,109 +99,9 @@ input StringFilter @oneOf {
|
|||
}
|
||||
type Subscription {
|
||||
taskProgress(taskID: ID!): Progress
|
||||
torrentDownloadUpdates: TorrentProgress
|
||||
}
|
||||
type Task {
|
||||
id: ID!
|
||||
}
|
||||
type Torrent {
|
||||
name: String! @resolver
|
||||
infohash: String!
|
||||
bytesCompleted: Int!
|
||||
torrentFilePath: String!
|
||||
bytesMissing: Int!
|
||||
priority: TorrentPriority!
|
||||
files: [TorrentFile!]! @resolver
|
||||
excludedFiles: [TorrentFile!]! @resolver
|
||||
peers: [TorrentPeer!]! @resolver
|
||||
}
|
||||
type TorrentClientStats {
|
||||
bytesWritten: Int!
|
||||
bytesWrittenData: Int!
|
||||
bytesRead: Int!
|
||||
bytesReadData: Int!
|
||||
bytesReadUsefulData: Int!
|
||||
bytesReadUsefulIntendedData: Int!
|
||||
chunksWritten: Int!
|
||||
chunksRead: Int!
|
||||
chunksReadUseful: Int!
|
||||
chunksReadWasted: Int!
|
||||
metadataChunksRead: Int!
|
||||
piecesDirtiedGood: Int!
|
||||
piecesDirtiedBad: Int!
|
||||
}
|
||||
type TorrentDaemonMutation {
|
||||
validateTorrent(filter: TorrentFilter!): Boolean! @resolver
|
||||
setTorrentPriority(infohash: String!, file: String, priority: TorrentPriority!): Boolean! @resolver
|
||||
cleanup(files: Boolean, dryRun: Boolean!): CleanupResponse! @resolver
|
||||
}
|
||||
type TorrentDaemonQuery {
|
||||
torrents(filter: TorrentsFilter): [Torrent!]! @resolver
|
||||
clientStats: TorrentClientStats! @resolver
|
||||
statsHistory(since: DateTime!, infohash: String): [TorrentStats!]! @resolver
|
||||
}
|
||||
type TorrentFS implements Dir & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
entries: [FsEntry!]! @resolver
|
||||
}
|
||||
type TorrentFile {
|
||||
filename: String!
|
||||
size: Int!
|
||||
bytesCompleted: Int!
|
||||
priority: TorrentPriority! @resolver
|
||||
}
|
||||
type TorrentFileEntry implements File & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
size: Int!
|
||||
}
|
||||
input TorrentFilter @oneOf {
|
||||
everything: Boolean
|
||||
infohash: String
|
||||
}
|
||||
type TorrentPeer {
|
||||
ip: String!
|
||||
downloadRate: Float!
|
||||
discovery: String!
|
||||
port: Int!
|
||||
clientName: String!
|
||||
}
|
||||
enum TorrentPriority {
|
||||
NONE
|
||||
NORMAL
|
||||
HIGH
|
||||
READAHEAD
|
||||
NOW
|
||||
}
|
||||
input TorrentPriorityFilter @oneOf {
|
||||
eq: TorrentPriority
|
||||
gt: TorrentPriority
|
||||
lt: TorrentPriority
|
||||
gte: TorrentPriority
|
||||
lte: TorrentPriority
|
||||
in: [TorrentPriority!]
|
||||
}
|
||||
type TorrentProgress implements Progress {
|
||||
torrent: Torrent!
|
||||
current: Int!
|
||||
total: Int!
|
||||
}
|
||||
type TorrentStats {
|
||||
timestamp: DateTime!
|
||||
downloadedBytes: UInt!
|
||||
uploadedBytes: UInt!
|
||||
totalPeers: UInt!
|
||||
activePeers: UInt!
|
||||
connectedSeeders: UInt!
|
||||
}
|
||||
input TorrentsFilter {
|
||||
infohash: StringFilter
|
||||
name: StringFilter
|
||||
bytesCompleted: IntFilter
|
||||
bytesMissing: IntFilter
|
||||
peersCount: IntFilter
|
||||
priority: TorrentPriorityFilter
|
||||
}
|
||||
scalar UInt
|
||||
scalar Upload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue