import { T as TraktComment, d as TraktList, q as TraktPrivateUser } from '../../trakt-list.model-DUX3arQu.cjs'; import { StartDateParam, TraktAlias, TraktTranslation, TraktGenericRating, TraktExtendedRatings, TraktStudio } from '../../models/trakt-entity.model.cjs'; import { BaseTraktPerson, TraktPersonExtended, TraktPersonJobs } from '../../models/trakt-people.model.cjs'; import { TraktMovieTrending, TraktMovieShort, TraktMovieExtended, TraktMovieFavorited, TraktMoviePlayed, TraktMovieAnticipated, TraktMovieBoxOffice, TraktMovieUpdate, TraktMovieRelease, TraktMovieStats } from '../../models/trakt-movie.model.cjs'; import { TraktApiMovieFilters } from '../trakt-api.filters.cjs'; import { TraktClientEndpoint, TraktApiParamsExtended, TraktApiParamsPagination, TraktApiExtended, TraktApiParamsFilter } from '../../models/trakt-client.model.cjs'; import '@dvcol/common-utils/common/models'; import '../../models/trakt-episode.model.cjs'; import '../../models/trakt-id.model.cjs'; import '../../models/trakt-image.model.cjs'; import '@dvcol/base-http-client'; import '@dvcol/common-utils/http/fetch'; import '../../models/trakt-season.model.cjs'; import '../../models/trakt-show.model.cjs'; type BaseMovieParams = TraktApiParamsPagination & TraktApiParamsExtended & TraktApiParamsFilter; declare const movies: { /** * Returns all movies being watched right now. Movies with the most users are returned first. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [trending]{@link https://trakt.docs.apiary.io/#reference/movies/trending/get-trending-movies} */ trending: TraktClientEndpoint; /** * Returns the most popular movies. Popularity is calculated using the rating percentage and the number of ratings. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-popular-movies]{@link https://trakt.docs.apiary.io/#reference/movies/popular/get-popular-movies} */ popular: TraktClientEndpoint)[], true>; /** * Returns the most favorited movies in the specified time period, defaulting to weekly. All stats are relative to the specific time period. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-the-most-favorited-movies]{@link https://trakt.docs.apiary.io/#reference/movies/favorited/get-the-most-favorited-movies} */ favorited: TraktClientEndpoint<{ /** Time period. */ period?: 'daily' | 'weekly' | 'monthly' | 'yearly' | 'all'; } & BaseMovieParams, TraktMovieFavorited[], true>; /** * Returns the most played (a single user can watch multiple times) movies in the specified time period, defaulting to weekly. * All stats are relative to the specific time period. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-the-most-played-movies]{@link https://trakt.docs.apiary.io/#reference/movies/played/get-the-most-played-movies} */ played: TraktClientEndpoint<{ /** Time period. */ period?: 'daily' | 'weekly' | 'monthly' | 'yearly' | 'all'; } & BaseMovieParams, TraktMoviePlayed[], true>; /** * Returns the most watched (unique users) movies in the specified time period, defaulting to weekly. All stats are relative to the specific time period. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-the-most-watched-movies]{@link https://trakt.docs.apiary.io/#reference/movies/watched/get-the-most-watched-movies} */ watched: TraktClientEndpoint<{ /** Time period. */ period?: 'daily' | 'weekly' | 'monthly' | 'yearly' | 'all'; } & BaseMovieParams, TraktMoviePlayed[], true>; /** * Returns the most collected (unique users) movies in the specified time period, defaulting to weekly. All stats are relative to the specific time period. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-the-most-collected-movies]{@link https://trakt.docs.apiary.io/#reference/movies/collected/get-the-most-collected-movies} */ collected: TraktClientEndpoint<{ /** Time period. */ period?: 'daily' | 'weekly' | 'monthly' | 'yearly' | 'all'; } & BaseMovieParams, TraktMoviePlayed[], true>; /** * Returns the most anticipated movies based on the number of lists a movie appears on. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-the-most-anticipated-movies]{@link https://trakt.docs.apiary.io/#reference/movies/anticipated/get-the-most-anticipated-movies} */ anticipated: TraktClientEndpoint; /** * Returns the top 10 grossing movies in the U.S. box office last weekend. Updated every Monday morning. * * @extended true - {@link TraktApiExtended.Full} * * @see [get-the-weekend-box-office]{@link https://trakt.docs.apiary.io/#reference/movies/box-office/get-the-weekend-box-office} */ boxOffice: TraktClientEndpoint, TraktMovieBoxOffice[], true>; /** * Returns all movies updated since the specified UTC date and time. * We recommended storing the X-Start-Date header you can be efficient using this method moving forward. * By default, 10 results are returned. You can send a limit to get up to 100 results per page. * * * Important * * The start_date is only accurate to the hour, for caching purposes. * Please drop the minutes and seconds from your timestamp to help optimize our cached data. * For example, use 2021-07-17T12:00:00Z and not 2021-07-17T12:23:34Z. * * * Note * * The start_date can only be a maximum of 30 days in the past. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * * @see [get-recently-updated-movies]{@link https://trakt.docs.apiary.io/#reference/movies/updates/get-recently-updated-movies} */ updates: TraktClientEndpoint & TraktApiParamsPagination, TraktMovieUpdate[], true>; /** * Returns all movie Trakt IDs updated since the specified UTC date and time. * We recommended storing the X-Start-Date header you can be efficient using this method moving forward. * By default, 10 results are returned. You can send a limit to get up to 100 results per page. * * * Important * * The start_date is only accurate to the hour, for caching purposes. * Please drop the minutes and seconds from your timestamp to help optimize our cached data. * For example, use 2021-07-17T12:00:00Z and not 2021-07-17T12:23:34Z. * * * Note * * The start_date can only be a maximum of 30 days in the past. * * @pagination true - {@link TraktApiPagination} * * @see [get-recently-updated-movie-trakt-ids]{@link https://trakt.docs.apiary.io/#reference/movies/updated-ids/get-recently-updated-movie-trakt-ids} */ updatedIds: TraktClientEndpoint; /** * Returns a single movie's details. * * * Note * * When getting full extended info, the status field can have a value of released, in production, post production, planned, rumored, or canceled. * * @extended true - {@link TraktApiExtended.Full} | {@link TraktApiExtended.Images} * * @see [get-a-movie]{@link https://trakt.docs.apiary.io/#reference/movies/updated-ids/get-a-movie} */ summary: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; } & TraktApiParamsExtended<"full" | "images">, TraktMovieShort & Partial, true>; /** * Returns all title aliases for a movie. Includes country where name is different. * * @see [get-all-movie-aliases]{@link https://trakt.docs.apiary.io/#reference/movies/summary/get-all-movie-aliases} */ aliases: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; }, TraktAlias[], true>; /** * Returns all releases for a movie including country, certification, release date, release type, and note. * The release type can be set to unknown, premiere, limited, theatrical, digital, physical, or tv. T * he note might have optional info such as the film festival name for a premiere release or Blu-ray specs for a physical release. We pull this info from TMDB. * * @see [get-all-movie-releases]{@link https://trakt.docs.apiary.io/#reference/movies/updated-ids/get-all-movie-releases} */ releases: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; /** 2 character country code (ISO 3166-1 alpha-2) */ country?: string; }, TraktMovieRelease[], true>; /** * Returns all translations for a movie, including language and translated values for title, tagline and overview. * * @see [get-all-movie-translations]{@link https://trakt.docs.apiary.io/#reference/movies/translations/get-all-movie-translations} */ translations: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; /** 2 character language code (ISO 639-1) */ language?: string; }, TraktTranslation[], true>; /** * Returns all top level comments for a movie. By default, the newest comments are returned first. * Other sorting options include oldest, most likes, most replies, highest rated, lowest rated, and most plays. * * * Note * * If you send OAuth, comments from blocked users will be automatically filtered out. * * @pagination true - {@link TraktApiPagination} * @emoji true - [documentation]{@link https://trakt.docs.apiary.io/#introduction/emojis} * @auth optional * * @see [get-all-movie-comments]{@link https://trakt.docs.apiary.io/#reference/movies/comments/get-all-movie-comments} */ comments: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; /** Comment sorting. */ sort?: 'newest' | 'oldest' | 'likes' | 'replies' | 'highest' | 'lowest' | 'plays'; } & TraktApiParamsPagination, TraktComment[], true>; /** * Returns all lists that contain this movie. By default, personal lists are returned sorted by the most popular. * * @pagination true - {@link TraktApiPagination} * @emoji true - [documentation]{@link https://trakt.docs.apiary.io/#introduction/emojis} * * @see [get-lists-containing-this-movie]{@link https://trakt.docs.apiary.io/#reference/movies/lists/get-lists-containing-this-movie} */ lists: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; /** Filter for a specific list type */ type?: 'all' | 'personal' | 'official' | 'watchlists' | 'favorites'; /** Lists sorting. */ sort?: 'popular' | 'likes' | 'comments' | 'items' | 'added' | 'updated'; } & TraktApiParamsPagination, TraktList[], true>; /** * Returns all cast and crew for a movie. Each cast member will have a characters array and a standard person object. * The crew object will be broken up by department into production, art, crew, costume & make-up, directing, writing, sound, camera, visual effects, lighting, and editing (if there are people for those crew positions). * Each of those members will have a jobs array and a standard person object. * * @extended true - {@link TraktApiExtended.Full} * * @see [get-all-people-for-a-movie]{@link https://trakt.docs.apiary.io/#reference/movies/people/get-all-people-for-a-movie} */ people: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; } & TraktApiParamsExtended<"full">, { cast: { characters: string[]; person: BaseTraktPerson & Partial; }[]; crew: Partial; /** * Returns the most popular movies. Popularity is calculated using the rating percentage and the number of ratings. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters movies - {@link TraktApiMovieFilters} * * @see [get-popular-movies]{@link https://trakt.docs.apiary.io/#reference/movies/popular/get-popular-movies} */ }[]>>; }, true>; /** * Returns rating (between 0 and 10) and distribution for a movie. * * @see [get-movie-ratings]{@link https://trakt.docs.apiary.io/#reference/movies/ratings/get-movie-ratings} */ ratings: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; } & TraktApiParamsExtended<"all">, TraktGenericRating | TraktExtendedRatings, true>; /** * Returns related and similar movies. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * * @see [get-related-movies]{@link https://trakt.docs.apiary.io/#reference/movies/related/get-related-movies} */ related: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; } & TraktApiParamsExtended<"full"> & TraktApiParamsPagination, (TraktMovieShort & Partial)[], true>; /** * Returns lots of movie stats. * * @see [get-movie-stats]{@link https://trakt.docs.apiary.io/#reference/movies/stats/get-movie-stats} */ stats: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; }, TraktMovieStats, true>; /** * Returns all studios for a movie. * * @see [get-movie-studios]{@link https://trakt.docs.apiary.io/#reference/movies/studios/get-movie-studios} */ studios: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; }, TraktStudio[], true>; /** * Returns all users watching this movie right now. * * @extended true - {@link TraktApiExtended.Full} * * @see [get-users-watching-right-now]{@link https://trakt.docs.apiary.io/#reference/movies/watching/get-users-watching-right-now} */ watching: TraktClientEndpoint<{ /** Trakt ID, Trakt slug, or IMDB ID */ id: string | number; } & TraktApiParamsExtended<"full">, (TraktPrivateUser & { name: string; vip: boolean; vip_ep: boolean; } & Partial)[], true>; }; export { movies };