mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Stash-box tagger integration (#454)
This commit is contained in:
@@ -866,3 +866,23 @@ export const stringToGender = (value?: string, caseInsensitive?: boolean) => {
|
||||
};
|
||||
|
||||
export const getGenderStrings = () => Array.from(stringGenderMap.keys());
|
||||
|
||||
export const stashBoxQuery = (searchVal: string, stashBoxIndex: number) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxSceneQuery,
|
||||
GQL.QueryStashBoxSceneQueryVariables
|
||||
>({
|
||||
query: GQL.QueryStashBoxSceneDocument,
|
||||
variables: { input: { q: searchVal, stash_box_index: stashBoxIndex } },
|
||||
});
|
||||
|
||||
export const stashBoxBatchQuery = (sceneIds: string[], stashBoxIndex: number) =>
|
||||
client?.query<
|
||||
GQL.QueryStashBoxSceneQuery,
|
||||
GQL.QueryStashBoxSceneQueryVariables
|
||||
>({
|
||||
query: GQL.QueryStashBoxSceneDocument,
|
||||
variables: {
|
||||
input: { scene_ids: sceneIds, stash_box_index: stashBoxIndex },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user