mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* Update localforage, remove query-string * Update fontawesome and flag-icons * Update formatjs * Update axios and videojs * Update apollo client and graphql * Update bootstrap and react * Update polyfills * Update vite * Update ESLint * Update stylelint * Update configs * Rebuild yarn.lock
38 lines
669 B
TypeScript
38 lines
669 B
TypeScript
import * as GQL from "src/core/generated-graphql";
|
|
|
|
export interface IScraperSource {
|
|
id: string;
|
|
displayName: string;
|
|
stash_box_endpoint?: string;
|
|
scraper_id?: string;
|
|
options?: GQL.IdentifyMetadataOptionsInput;
|
|
}
|
|
|
|
export const sceneFields = [
|
|
"title",
|
|
"code",
|
|
"date",
|
|
"director",
|
|
"details",
|
|
"url",
|
|
"studio",
|
|
"performers",
|
|
"tags",
|
|
"stash_ids",
|
|
] as const;
|
|
export type SceneField = (typeof sceneFields)[number];
|
|
|
|
export const multiValueSceneFields: SceneField[] = [
|
|
"studio",
|
|
"performers",
|
|
"tags",
|
|
];
|
|
|
|
export function sceneFieldMessageID(field: SceneField) {
|
|
if (field === "code") {
|
|
return "scene_code";
|
|
}
|
|
|
|
return field;
|
|
}
|