refactor(pcd): reorganise entityTests/releases to CRUD pattern

This commit is contained in:
Sam Chau
2026-01-28 01:04:02 +10:30
parent bb64b9ba9a
commit ec5946428d
17 changed files with 154 additions and 154 deletions

View File

@@ -88,3 +88,24 @@ export interface QualityDefinitionsConfig {
name: string;
entries: QualityDefinitionEntry[];
}
// ============================================================================
// ENTITY TESTS
// ============================================================================
import type { TestEntitiesRow, TestReleasesRow } from './types.ts';
/** Test release with parsed arrays (JSON strings → string[]) */
export type TestRelease = Omit<
TestReleasesRow,
'entity_type' | 'entity_tmdb_id' | 'languages' | 'indexers' | 'flags' | 'created_at' | 'updated_at'
> & {
languages: string[];
indexers: string[];
flags: string[];
};
/** Test entity with nested releases */
export type TestEntity = Omit<TestEntitiesRow, 'created_at' | 'updated_at'> & {
releases: TestRelease[];
};