2019-03-26 15:35:06 +00:00
|
|
|
"""The query root for this schema"""
|
|
|
|
type Query {
|
|
|
|
"""Find a scene by ID or Checksum"""
|
|
|
|
findScene(id: ID, checksum: String): Scene
|
|
|
|
"""A function which queries Scene objects"""
|
|
|
|
findScenes(scene_filter: SceneFilterType, scene_ids: [Int!], filter: FindFilterType): FindScenesResultType!
|
|
|
|
|
2019-10-30 13:37:21 +00:00
|
|
|
findScenesByPathRegex(filter: FindFilterType): FindScenesResultType!
|
|
|
|
|
2019-11-07 12:49:08 +00:00
|
|
|
parseSceneFilenames(filter: FindFilterType, config: SceneParserInput!): SceneParserResultType!
|
|
|
|
|
2019-03-26 15:35:06 +00:00
|
|
|
"""A function which queries SceneMarker objects"""
|
|
|
|
findSceneMarkers(scene_marker_filter: SceneMarkerFilterType filter: FindFilterType): FindSceneMarkersResultType!
|
|
|
|
|
|
|
|
"""Find a performer by ID"""
|
|
|
|
findPerformer(id: ID!): Performer
|
|
|
|
"""A function which queries Performer objects"""
|
|
|
|
findPerformers(performer_filter: PerformerFilterType, filter: FindFilterType): FindPerformersResultType!
|
|
|
|
|
|
|
|
"""Find a studio by ID"""
|
|
|
|
findStudio(id: ID!): Studio
|
|
|
|
"""A function which queries Studio objects"""
|
|
|
|
findStudios(filter: FindFilterType): FindStudiosResultType!
|
|
|
|
|
|
|
|
findGallery(id: ID!): Gallery
|
|
|
|
findGalleries(filter: FindFilterType): FindGalleriesResultType!
|
|
|
|
|
|
|
|
findTag(id: ID!): Tag
|
|
|
|
|
|
|
|
"""Retrieve random scene markers for the wall"""
|
|
|
|
markerWall(q: String): [SceneMarker!]!
|
|
|
|
"""Retrieve random scenes for the wall"""
|
|
|
|
sceneWall(q: String): [Scene!]!
|
|
|
|
|
|
|
|
"""Get marker strings"""
|
|
|
|
markerStrings(q: String, sort: String): [MarkerStringsResultType]!
|
|
|
|
"""Get the list of valid galleries for a given scene ID"""
|
|
|
|
validGalleriesForScene(scene_id: ID): [Gallery!]!
|
|
|
|
"""Get stats"""
|
|
|
|
stats: StatsResultType!
|
|
|
|
"""Organize scene markers by tag for a given scene ID"""
|
|
|
|
sceneMarkerTags(scene_id: ID!): [SceneMarkerTag!]!
|
|
|
|
|
2019-10-24 23:07:07 +00:00
|
|
|
logs: [LogEntry!]!
|
|
|
|
|
2019-03-26 15:35:06 +00:00
|
|
|
# Scrapers
|
|
|
|
|
2019-11-19 02:49:05 +00:00
|
|
|
"""List available scrapers"""
|
2019-12-12 19:27:44 +00:00
|
|
|
listPerformerScrapers: [Scraper!]!
|
|
|
|
#listSceneScrapers: [Scraper!]!
|
2019-11-19 02:49:05 +00:00
|
|
|
"""Scrape a list of performers based on name"""
|
|
|
|
scrapePerformerList(scraper_id: ID!, query: String!): [ScrapedPerformer!]!
|
|
|
|
"""Scrapes a complete performer record based on a scrapePerformerList result"""
|
|
|
|
scrapePerformer(scraper_id: ID!, scraped_performer: ScrapedPerformerInput!): ScrapedPerformer
|
|
|
|
"""Scrapes a complete performer record based on a URL"""
|
|
|
|
scrapePerformerURL(url: String!): ScrapedPerformer
|
|
|
|
|
2019-03-26 15:35:06 +00:00
|
|
|
"""Scrape a performer using Freeones"""
|
|
|
|
scrapeFreeones(performer_name: String!): ScrapedPerformer
|
|
|
|
"""Scrape a list of performers from a query"""
|
|
|
|
scrapeFreeonesPerformerList(query: String!): [String!]!
|
|
|
|
|
|
|
|
# Config
|
|
|
|
"""Returns the current, complete configuration"""
|
|
|
|
configuration: ConfigResult!
|
|
|
|
"""Returns an array of paths for the given path"""
|
|
|
|
directories(path: String): [String!]!
|
|
|
|
|
|
|
|
# Metadata
|
|
|
|
|
|
|
|
"""Start an import. Returns the job ID"""
|
|
|
|
metadataImport: String!
|
|
|
|
"""Start an export. Returns the job ID"""
|
|
|
|
metadataExport: String!
|
|
|
|
"""Start a scan. Returns the job ID"""
|
2019-10-12 08:20:27 +00:00
|
|
|
metadataScan(input: ScanMetadataInput!): String!
|
2019-03-26 15:35:06 +00:00
|
|
|
"""Start generating content. Returns the job ID"""
|
|
|
|
metadataGenerate(input: GenerateMetadataInput!): String!
|
2019-12-01 16:18:44 +00:00
|
|
|
"""Start auto-tagging. Returns the job ID"""
|
|
|
|
metadataAutoTag(input: AutoTagMetadataInput!): String!
|
2019-03-26 15:35:06 +00:00
|
|
|
"""Clean metadata. Returns the job ID"""
|
|
|
|
metadataClean: String!
|
|
|
|
|
2019-11-07 04:35:04 +00:00
|
|
|
jobStatus: MetadataUpdateStatus!
|
|
|
|
stopJob: Boolean!
|
|
|
|
|
2019-03-26 15:35:06 +00:00
|
|
|
# Get everything
|
|
|
|
|
|
|
|
allPerformers: [Performer!]!
|
|
|
|
allStudios: [Studio!]!
|
|
|
|
allTags: [Tag!]!
|
2019-08-21 04:47:48 +00:00
|
|
|
|
|
|
|
# Version
|
|
|
|
version: Version!
|
2019-03-26 15:35:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
sceneUpdate(input: SceneUpdateInput!): Scene
|
2019-10-27 13:05:31 +00:00
|
|
|
bulkSceneUpdate(input: BulkSceneUpdateInput!): [Scene!]
|
2019-08-15 07:32:57 +00:00
|
|
|
sceneDestroy(input: SceneDestroyInput!): Boolean!
|
2019-10-30 13:37:21 +00:00
|
|
|
scenesUpdate(input: [SceneUpdateInput!]!): [Scene]
|
2019-03-26 15:35:06 +00:00
|
|
|
|
|
|
|
sceneMarkerCreate(input: SceneMarkerCreateInput!): SceneMarker
|
|
|
|
sceneMarkerUpdate(input: SceneMarkerUpdateInput!): SceneMarker
|
|
|
|
sceneMarkerDestroy(id: ID!): Boolean!
|
|
|
|
|
|
|
|
performerCreate(input: PerformerCreateInput!): Performer
|
|
|
|
performerUpdate(input: PerformerUpdateInput!): Performer
|
2019-08-14 21:40:51 +00:00
|
|
|
performerDestroy(input: PerformerDestroyInput!): Boolean!
|
2019-03-26 15:35:06 +00:00
|
|
|
|
|
|
|
studioCreate(input: StudioCreateInput!): Studio
|
|
|
|
studioUpdate(input: StudioUpdateInput!): Studio
|
2019-08-14 21:40:51 +00:00
|
|
|
studioDestroy(input: StudioDestroyInput!): Boolean!
|
2019-03-26 15:35:06 +00:00
|
|
|
|
|
|
|
tagCreate(input: TagCreateInput!): Tag
|
|
|
|
tagUpdate(input: TagUpdateInput!): Tag
|
|
|
|
tagDestroy(input: TagDestroyInput!): Boolean!
|
|
|
|
|
|
|
|
"""Change general configuration options"""
|
|
|
|
configureGeneral(input: ConfigGeneralInput!): ConfigGeneralResult!
|
2019-08-22 22:24:14 +00:00
|
|
|
configureInterface(input: ConfigInterfaceInput!): ConfigInterfaceResult!
|
2019-03-26 15:35:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Subscription {
|
|
|
|
"""Update from the metadata manager"""
|
2019-11-07 04:35:04 +00:00
|
|
|
metadataUpdate: MetadataUpdateStatus!
|
2019-10-24 23:07:07 +00:00
|
|
|
|
|
|
|
loggingSubscribe: [LogEntry!]!
|
2019-03-26 15:35:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
schema {
|
|
|
|
query: Query
|
|
|
|
mutation: Mutation
|
|
|
|
subscription: Subscription
|
|
|
|
}
|