🍿 @lorenzopant/tmdb

Enums

Enumerated values used across TMDB API responses.

Enumerated constants used in TMDB API responses to represent typed numeric values.

These are exported as const objects (not TypeScript enums). Named access works the same way (MovieReleaseType.Theatrical), and each has a companion *Label map for numeric → human-readable string lookups.

MovieReleaseType

Represents the type of a movie release as defined by TMDB. Used in MovieReleaseDate.type and DiscoverMovieParams.with_release_type.

ValueNameDescription
1PremiereA high-profile premiere event, typically a red carpet or festival screening.
2TheatricalLimitedA limited theatrical release, usually in select cities or venues.
3TheatricalA wide theatrical release to the general public.
4DigitalDigital release via streaming or download platforms.
5PhysicalPhysical media release (Blu-ray, DVD, etc.).
6TVTelevision broadcast premiere.
import { MovieReleaseType, MovieReleaseTypeLabel } from "@lorenzopant/tmdb";

if (releaseDate.type === MovieReleaseType.Theatrical) {
	console.log("Wide theatrical release");
}

// Human-readable label from a numeric value
MovieReleaseTypeLabel[releaseDate.type]; // e.g. "Theatrical"

DiscoverTVStatus

Numeric status values accepted by TMDB's with_status TV discover filter. Used in DiscoverTVParams.with_status.

ValueNameDescription
0ReturningSeriesCurrently airing.
1PlannedNot yet in production.
2InProductionCurrently in production.
3EndedSeries has ended.
4CanceledSeries was canceled.
5PilotPilot stage only.
import { DiscoverTVStatus, DiscoverTVStatusLabel } from "@lorenzopant/tmdb";

tmdb.discover.tv({ with_status: DiscoverTVStatus.ReturningSeries });

// Human-readable label from a numeric value
DiscoverTVStatusLabel[series.status]; // e.g. "Returning Series"

DiscoverTVType

Numeric type values accepted by TMDB's with_type TV discover filter. Used in DiscoverTVParams.with_type.

ValueNameDescription
0DocumentaryDocumentary.
1NewsNews program.
2MiniseriesMiniseries.
3RealityReality show.
4ScriptedScripted series.
5TalkShowTalk show.
6VideoVideo.
import { DiscoverTVType, DiscoverTVTypeLabel } from "@lorenzopant/tmdb";

tmdb.discover.tv({ with_type: DiscoverTVType.Scripted });

// Human-readable label from a numeric value
DiscoverTVTypeLabel[series.type]; // e.g. "Scripted"

TVEpisodeGroupType

Identifies the grouping strategy used by a TV episode group. Used in TVEpisodeGroupDetails.type.

ValueNameDescription
1OriginalAirDateGrouped by original air date.
2AbsoluteAbsolute episode ordering.
3DvdDVD release ordering.
4DigitalDigital release ordering.
5StoryArcGrouped by story arc.
6ProductionProduction ordering.
7TVTV broadcast ordering.
import { TVEpisodeGroupType, TVEpisodeGroupTypeLabel } from "@lorenzopant/tmdb";

if (group.type === TVEpisodeGroupType.OriginalAirDate) {
	console.log("Ordered by air date");
}

// Human-readable label from a numeric value
TVEpisodeGroupTypeLabel[group.type]; // e.g. "Original Air Date"

On this page