2.7 KiB
title, tags
| title | tags | |||
|---|---|---|---|---|
| Types |
|
Types
All TypeScript interfaces in react_frontend/src/types/index.ts.
Core Entity Types
Entry
The main entity — movie or TV series.
Key fields: id, title, original_title, release_date, runtime, storyline, is_tvseries, watchlist, favorit, hidden, status, poster_path, banner_path, date_first_seen, date_last_seen, createdAt
Relations: entry_ids (#EntryIds), entry_ratings (#EntryRatings), genres (#Genre[]), networks (#Network[]), medias (#Media[]), entry_seens (#EntrySeen[]), seasons (#Season[])
Season
TV season. Key fields: id, entry_id, name, season_number, episode_count, air_date, poster_path
Episode
TV episode. Key fields: id, season_id, name, episode_number, runtime, air_date, still_path, date_first_seen, date_last_seen
EntrySeen
Movie watch record. Fields: id, entry_id, date_seen, seen_with, accuracy
EpisodeSeen
Episode watch record. Fields: id, entry_id, episode_id, date_seen, seen_with, accuracy
SeenAccuracy
Type alias: 'EXACT' | 'ESTIMATED' | 'UNKNOWN'
Used by both EntrySeen and EpisodeSeen. See Watch Tracking.
Supporting Types
EntryIds
External IDs: tmdb_id, imdb_id, tvdb_id
EntryRatings
Multi-source ratings: user_rating, tmdb_rating, imdb_rating, rotten_tomatoes_rating
Media
Image record: id, mediaable, mediaableId, type, path, isLocal, isSelected, isCustom, isFavorit
Collection
Fields: id, tmdb_id, imdb_id, name, description, isUserCollection, userRating, poster_path, backdrop_path, entries
People
Person profile: id, tmdb_id, name, birthday, deathday, gender, biography, profile_path, fully_fetched
Credit
Cast/crew: id, character, order, cast_type, department, job, people (nested People)
Genre
id, name
Network
id, name
Settings
tmdbApiKey, backPort, frontPort, userDataPath, libraryViewMode, watchlistViewMode
TMDB Types
TmdbEntry
TMDB search/browse result: id, title/name, overview, poster_path, backdrop_path, media_type, release_date/first_air_date, vote_average
TmdbPerson
TMDB person result: id, name, profile_path, known_for_department, known_for
TmdbPaginatedResponse
Generic paginated TMDB response: page, total_pages, total_results, results
Type Normalization
Backend Sequelize responses use a mix of camelCase and snake_case. The Normalizers layer transforms them into consistent frontend types. See Normalizers.