update
This commit is contained in:
parent
5591f145a9
commit
d8ee8a3a24
166 changed files with 15431 additions and 889 deletions
graphql
|
@ -1,9 +1,10 @@
|
|||
type Query {
|
||||
torrents(filter: TorrentsFilter, pagination: Pagination): [Torrent!]!
|
||||
fsListDir(path: String!): ListDirResponse!
|
||||
fsEntry(path: String!): FsEntry
|
||||
}
|
||||
|
||||
input TorrentsFilter {
|
||||
infohash: StringFilter
|
||||
name: StringFilter
|
||||
bytesCompleted: IntFilter
|
||||
bytesMissing: IntFilter
|
||||
|
@ -11,11 +12,6 @@ input TorrentsFilter {
|
|||
peersCount: IntFilter
|
||||
}
|
||||
|
||||
type ListDirResponse {
|
||||
root: DirEntry!
|
||||
entries: [DirEntry!]!
|
||||
}
|
||||
|
||||
input Pagination {
|
||||
offset: Int!
|
||||
limit: Int!
|
||||
|
|
|
@ -1,26 +1,47 @@
|
|||
interface DirEntry {
|
||||
interface FsEntry {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Dir implements DirEntry {
|
||||
interface Dir implements FsEntry {
|
||||
name: String!
|
||||
entries: [FsEntry!]!
|
||||
}
|
||||
|
||||
type File implements DirEntry {
|
||||
interface File implements FsEntry {
|
||||
name: String!
|
||||
size: Int!
|
||||
}
|
||||
|
||||
type ResolverFS implements DirEntry {
|
||||
type SimpleDir implements Dir & FsEntry {
|
||||
name: String!
|
||||
entries: [FsEntry!]!
|
||||
}
|
||||
|
||||
type TorrentFS implements DirEntry {
|
||||
type SimpleFile implements File & FsEntry {
|
||||
name: String!
|
||||
size: Int!
|
||||
}
|
||||
|
||||
type ResolverFS implements Dir & FsEntry {
|
||||
name: String!
|
||||
entries: [FsEntry!]!
|
||||
}
|
||||
|
||||
type ArchiveFS implements Dir & FsEntry {
|
||||
name: String!
|
||||
entries: [FsEntry!]!
|
||||
|
||||
size: Int!
|
||||
}
|
||||
|
||||
type TorrentFS implements Dir & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
entries: [FsEntry!]!
|
||||
}
|
||||
|
||||
type ArchiveFS implements DirEntry {
|
||||
type TorrentFileEntry implements File & FsEntry {
|
||||
name: String!
|
||||
torrent: Torrent!
|
||||
size: Int!
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue