mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Stash box client interface (#751)
* Add gql client generation files * Update dependencies * Add stash-box client generation to the makefile * Move scraped scene object matchers to models * Add stash-box to scrape with dropdown * Add scrape scene from fingerprint in UI
This commit is contained in:
@@ -498,6 +498,17 @@ export const queryScrapeScene = (
|
||||
fetchPolicy: "network-only",
|
||||
});
|
||||
|
||||
export const queryStashBoxScene = (stashBoxIndex: number, sceneID: string) =>
|
||||
client.query<GQL.QueryStashBoxSceneQuery>({
|
||||
query: GQL.QueryStashBoxSceneDocument,
|
||||
variables: {
|
||||
input: {
|
||||
stash_box_index: stashBoxIndex,
|
||||
scene_ids: [sceneID],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const mutateReloadScrapers = () =>
|
||||
client.mutate<GQL.ReloadScrapersMutation>({
|
||||
mutation: GQL.ReloadScrapersDocument,
|
||||
|
||||
Reference in New Issue
Block a user