From 941e4bb2976d517afb28219b24e6baa322a892cb Mon Sep 17 00:00:00 2001 From: zurdi Date: Tue, 5 May 2026 09:12:52 +0000 Subject: [PATCH] chore: generated front new types --- frontend/src/v2/CLAUDE.md => CLAUDE.md | 0 frontend/src/__generated__/index.ts | 3 +++ .../models/CollectionRomsPayload.ts | 8 ++++++++ frontend/src/__generated__/models/JobStatus.ts | 2 +- .../models/RomFileAudioMetaSchema.ts | 17 +++++++++++++++++ .../src/__generated__/models/RomFileSchema.ts | 2 ++ .../models/SoundtrackTrackMetaSchema.ts | 12 ++++++++++++ frontend/src/utils/tasks.ts | 6 ++++++ 8 files changed, 49 insertions(+), 1 deletion(-) rename frontend/src/v2/CLAUDE.md => CLAUDE.md (100%) create mode 100644 frontend/src/__generated__/models/CollectionRomsPayload.ts create mode 100644 frontend/src/__generated__/models/RomFileAudioMetaSchema.ts create mode 100644 frontend/src/__generated__/models/SoundtrackTrackMetaSchema.ts diff --git a/frontend/src/v2/CLAUDE.md b/CLAUDE.md similarity index 100% rename from frontend/src/v2/CLAUDE.md rename to CLAUDE.md diff --git a/frontend/src/__generated__/index.ts b/frontend/src/__generated__/index.ts index 352bc0682..828ef3e5a 100644 --- a/frontend/src/__generated__/index.ts +++ b/frontend/src/__generated__/index.ts @@ -40,6 +40,7 @@ export type { ClientTokenCreateSchema } from './models/ClientTokenCreateSchema'; export type { ClientTokenExchangePayload } from './models/ClientTokenExchangePayload'; export type { ClientTokenPairSchema } from './models/ClientTokenPairSchema'; export type { ClientTokenSchema } from './models/ClientTokenSchema'; +export type { CollectionRomsPayload } from './models/CollectionRomsPayload'; export type { CollectionSchema } from './models/CollectionSchema'; export type { ConfigResponse } from './models/ConfigResponse'; export type { ConversionStats } from './models/ConversionStats'; @@ -93,6 +94,7 @@ export type { RAProgression } from './models/RAProgression'; export type { RAUserGameProgression } from './models/RAUserGameProgression'; export type { RegionBreakdownItem } from './models/RegionBreakdownItem'; export type { Role } from './models/Role'; +export type { RomFileAudioMetaSchema } from './models/RomFileAudioMetaSchema'; export type { RomFileCategory } from './models/RomFileCategory'; export type { RomFileSchema } from './models/RomFileSchema'; export type { RomFiltersDict } from './models/RomFiltersDict'; @@ -123,6 +125,7 @@ export type { SiblingRomSchema } from './models/SiblingRomSchema'; export type { SimpleRomSchema } from './models/SimpleRomSchema'; export type { SlotSummarySchema } from './models/SlotSummarySchema'; export type { SmartCollectionSchema } from './models/SmartCollectionSchema'; +export type { SoundtrackTrackMetaSchema } from './models/SoundtrackTrackMetaSchema'; export type { SSAgeRating } from './models/SSAgeRating'; export type { StateSchema } from './models/StateSchema'; export type { StatsReturn } from './models/StatsReturn'; diff --git a/frontend/src/__generated__/models/CollectionRomsPayload.ts b/frontend/src/__generated__/models/CollectionRomsPayload.ts new file mode 100644 index 000000000..7c6fa4f72 --- /dev/null +++ b/frontend/src/__generated__/models/CollectionRomsPayload.ts @@ -0,0 +1,8 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type CollectionRomsPayload = { + rom_ids: Array; +}; + diff --git a/frontend/src/__generated__/models/JobStatus.ts b/frontend/src/__generated__/models/JobStatus.ts index 7a4998322..8fd91fedd 100644 --- a/frontend/src/__generated__/models/JobStatus.ts +++ b/frontend/src/__generated__/models/JobStatus.ts @@ -5,4 +5,4 @@ /** * The Status of Job within its lifecycle at any given time. */ -export type JobStatus = 'queued' | 'finished' | 'failed' | 'started' | 'deferred' | 'scheduled' | 'stopped' | 'canceled'; +export type JobStatus = 'created' | 'queued' | 'finished' | 'failed' | 'started' | 'deferred' | 'scheduled' | 'stopped' | 'canceled'; diff --git a/frontend/src/__generated__/models/RomFileAudioMetaSchema.ts b/frontend/src/__generated__/models/RomFileAudioMetaSchema.ts new file mode 100644 index 000000000..f51b19145 --- /dev/null +++ b/frontend/src/__generated__/models/RomFileAudioMetaSchema.ts @@ -0,0 +1,17 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type RomFileAudioMetaSchema = { + title?: (string | null); + artist?: (string | null); + album?: (string | null); + year?: (string | null); + genre?: (string | null); + track?: (string | null); + disc?: (string | null); + duration_seconds?: (number | null); + has_embedded_cover?: boolean; + cover_path?: (string | null); +}; + diff --git a/frontend/src/__generated__/models/RomFileSchema.ts b/frontend/src/__generated__/models/RomFileSchema.ts index 0d88b2469..30b5714d4 100644 --- a/frontend/src/__generated__/models/RomFileSchema.ts +++ b/frontend/src/__generated__/models/RomFileSchema.ts @@ -2,6 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { RomFileAudioMetaSchema } from './RomFileAudioMetaSchema'; import type { RomFileCategory } from './RomFileCategory'; export type RomFileSchema = { id: number; @@ -18,5 +19,6 @@ export type RomFileSchema = { sha1_hash: (string | null); ra_hash: (string | null); category: (RomFileCategory | null); + audio_meta?: (RomFileAudioMetaSchema | null); }; diff --git a/frontend/src/__generated__/models/SoundtrackTrackMetaSchema.ts b/frontend/src/__generated__/models/SoundtrackTrackMetaSchema.ts new file mode 100644 index 000000000..d6a9e8f47 --- /dev/null +++ b/frontend/src/__generated__/models/SoundtrackTrackMetaSchema.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { RomFileAudioMetaSchema } from './RomFileAudioMetaSchema'; +export type SoundtrackTrackMetaSchema = { + file_id: number; + file_name: string; + file_size_bytes: number; + audio_meta?: (RomFileAudioMetaSchema | null); +}; + diff --git a/frontend/src/utils/tasks.ts b/frontend/src/utils/tasks.ts index 34ef10182..517163894 100644 --- a/frontend/src/utils/tasks.ts +++ b/frontend/src/utils/tasks.ts @@ -24,6 +24,12 @@ export const TaskStatusItem: Record< JobStatus, { color: string; icon: string; status: string; text: string } > = { + created: { + color: "grey", + icon: "mdi-clock-outline", + status: "grey", + text: t("settings.queued"), + }, queued: { color: "orange", icon: "mdi-clock-outline",