Files
stash/ui/v2.5/src/components/Dialogs/IdentifyDialog/constants.ts
DingDongSoLong4 a1851b3713 Update dependencies (#3123)
* 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
2023-02-16 14:06:44 +11:00

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;
}