mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Stash-Box Performer Tagger (#1277)
* Add bulk stash-box performer task * Add stash-box performer scraper to scrape with menu
This commit is contained in:
@@ -813,6 +813,20 @@ export const queryStashBoxScene = (stashBoxIndex: number, sceneID: string) =>
|
||||
},
|
||||
});
|
||||
|
||||
export const queryStashBoxPerformer = (
|
||||
stashBoxIndex: number,
|
||||
performerID: string
|
||||
) =>
|
||||
client.query<GQL.QueryStashBoxPerformerQuery>({
|
||||
query: GQL.QueryStashBoxPerformerDocument,
|
||||
variables: {
|
||||
input: {
|
||||
stash_box_index: stashBoxIndex,
|
||||
performer_ids: [performerID],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const queryScrapeGallery = (
|
||||
scraperId: string,
|
||||
gallery: GQL.GalleryUpdateInput
|
||||
@@ -1006,7 +1020,7 @@ export const makePerformerCreateInput = (
|
||||
return input;
|
||||
};
|
||||
|
||||
export const stashBoxQuery = (searchVal: string, stashBoxIndex: number) =>
|
||||
export const stashBoxSceneQuery = (searchVal: string, stashBoxIndex: number) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxSceneQuery,
|
||||
GQL.QueryStashBoxSceneQueryVariables
|
||||
@@ -1015,7 +1029,22 @@ export const stashBoxQuery = (searchVal: string, stashBoxIndex: number) =>
|
||||
variables: { input: { q: searchVal, stash_box_index: stashBoxIndex } },
|
||||
});
|
||||
|
||||
export const stashBoxBatchQuery = (sceneIds: string[], stashBoxIndex: number) =>
|
||||
export const stashBoxPerformerQuery = (
|
||||
searchVal: string,
|
||||
stashBoxIndex: number
|
||||
) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxPerformerQuery,
|
||||
GQL.QueryStashBoxPerformerQueryVariables
|
||||
>({
|
||||
query: GQL.QueryStashBoxPerformerDocument,
|
||||
variables: { input: { q: searchVal, stash_box_index: stashBoxIndex } },
|
||||
});
|
||||
|
||||
export const stashBoxSceneBatchQuery = (
|
||||
sceneIds: string[],
|
||||
stashBoxIndex: number
|
||||
) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxSceneQuery,
|
||||
GQL.QueryStashBoxSceneQueryVariables
|
||||
@@ -1025,3 +1054,17 @@ export const stashBoxBatchQuery = (sceneIds: string[], stashBoxIndex: number) =>
|
||||
input: { scene_ids: sceneIds, stash_box_index: stashBoxIndex },
|
||||
},
|
||||
});
|
||||
|
||||
export const stashBoxPerformerBatchQuery = (
|
||||
performerIds: string[],
|
||||
stashBoxIndex: number
|
||||
) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxPerformerQuery,
|
||||
GQL.QueryStashBoxPerformerQueryVariables
|
||||
>({
|
||||
query: GQL.QueryStashBoxPerformerDocument,
|
||||
variables: {
|
||||
input: { performer_ids: performerIds, stash_box_index: stashBoxIndex },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user