mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-02-01 07:10:47 +01:00
refactor(pcd): reorganise entityTests/releases to CRUD pattern
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user