Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tmdb-ts-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdb-ts-api - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

dist/movie/{movie_id}/details.d.ts

1

dist/configuration.d.ts

@@ -6,2 +6,3 @@ import { ApiConfiguration } from "./configuration/api";

import { PrimaryTranslations } from "./configuration/primary_translations";
export { ApiConfiguration, CountriesConfiguration, LanguagesConfiguration, PrimaryTranslations, };
declare const _default: {

@@ -8,0 +9,0 @@ /**

62

dist/index.d.ts

@@ -56,8 +56,8 @@ export interface PaginatedResponse<T> {

configuration: {
getApiConfiguration: () => Promise<import("./configuration/api").ApiConfiguration>;
getCountries: () => Promise<import("./configuration/countries").CountriesConfiguration>;
getApiConfiguration: () => Promise<import("./configuration").ApiConfiguration>;
getCountries: () => Promise<import("./configuration").CountriesConfiguration>;
getJobs: () => Promise<import("./configuration/jobs").JobsConfiguration[]>;
getLanguages: () => Promise<import("./configuration/languages").LanguagesConfiguration>;
getPrimaryTranslations: () => Promise<import("./configuration/primary_translations").PrimaryTranslations>;
getTimezones: () => Promise<import("./configuration/primary_translations").PrimaryTranslations>;
getLanguages: () => Promise<import("./configuration").LanguagesConfiguration>;
getPrimaryTranslations: () => Promise<import("./configuration").PrimaryTranslations>;
getTimezones: () => Promise<import("./configuration").PrimaryTranslations>;
};

@@ -91,3 +91,3 @@ credit: {

language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./movie/{movie_id}").MovieDetails>;
}) => Promise<import("./movie").MovieDetails>;
getAccountState: () => Promise<void>;

@@ -98,3 +98,3 @@ getAlternativeTitles: () => Promise<void>;

language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./movie/{movie_id}/credits").MovieCredits>;
}) => Promise<import("./movie").MovieCredits>;
getExternalIds: () => Promise<void>;

@@ -104,12 +104,12 @@ getImages: (movieId: string, params?: {

include_image_language?: string | undefined;
}) => Promise<import("./movie/{movie_id}/images").MovieImages>;
getKeywords: (movieId: string) => Promise<import("./movie/{movie_id}/keywords").MovieKeywords>;
}) => Promise<import("./movie").MovieImages>;
getKeywords: (movieId: string) => Promise<import("./movie").MovieKeywords>;
getLists: (movieId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
page?: number | undefined;
}) => Promise<import("./movie/{movie_id}/lists").MovieLists>;
}) => Promise<import("./movie").MovieLists>;
getRecommendations: (movieId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
page?: number | undefined;
}) => Promise<import("./movie/{movie_id}/recommendations").MovieRecommendations>;
}) => Promise<import("./movie").MovieRecommendations>;
getReleaseDates: () => Promise<void>;

@@ -179,9 +179,9 @@ getReview: () => Promise<void>;

page?: number | undefined;
} | undefined) => Promise<import("./search/collections").CollectionsSearchResults>;
} | undefined) => Promise<import("./search").CollectionsSearchResults>;
searchCompanies: (query: string, params?: {
page?: number | undefined;
} | undefined) => Promise<import("./search/companies").CompaniesSearchResults>;
} | undefined) => Promise<import("./search").CompaniesSearchResults>;
searchKeywords: (query: string, params?: {
page?: number | undefined;
} | undefined) => Promise<import("./search/keywords").KeywordsSearchResults>;
} | undefined) => Promise<import("./search").KeywordsSearchResults>;
searchMovies: (query: string, params?: {

@@ -194,3 +194,3 @@ include_adult?: boolean | undefined;

primary_release_year?: number | undefined;
} | undefined) => Promise<import("./search/movies").MoviesSearchResults>;
} | undefined) => Promise<import("./search").MoviesSearchResults>;
searchMulti: (query: string, params?: {

@@ -201,3 +201,3 @@ include_adult?: boolean | undefined;

region?: import("./configuration/countries").Country | undefined;
} | undefined) => Promise<import("./search/multi").MultiSearchResults>;
} | undefined) => Promise<import("./search").MultiSearchResults>;
searchPeople: (query: string, params?: {

@@ -208,3 +208,3 @@ include_adult?: boolean | undefined;

region?: import("./configuration/countries").Country | undefined;
} | undefined) => Promise<import("./search/people").PeopleSearchResults>;
} | undefined) => Promise<import("./search").PeopleSearchResults>;
searchTvShows: (query: string, params?: {

@@ -215,3 +215,3 @@ include_adult?: boolean | undefined;

first_air_date_year?: number | undefined;
} | undefined) => Promise<import("./search/tv-shows").TvShowsSearchResults>;
} | undefined) => Promise<import("./search").TvShowsSearchResults>;
};

@@ -244,10 +244,10 @@ tvShow: {

language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}").TvShowDetails>;
}) => Promise<import("./tvShow").TvShowDetails>;
getAccountStates: () => Promise<void>;
getAggregateCredits: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/aggregate_credits").TvShowAggregateCredits>;
}) => Promise<import("./tvShow").TvShowAggregateCredits>;
getAlternativeTitles: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/alternative_titles").TvShowAlternativeTitles>;
}) => Promise<import("./tvShow").TvShowAlternativeTitles>;
getChanges: () => Promise<void>;

@@ -259,17 +259,17 @@ getContentRatings: (tvShowId: string, params?: {

language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/content_ratings").TvShowContentRatings>;
}) => Promise<import("./tvShow").TvShowContentRatings>;
getEpisodeGroups: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/episode_groups").TvShowEpisodeGroups>;
}) => Promise<import("./tvShow").TvShowEpisodeGroups>;
getExternalIds: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/external_ids").TvShowExternalIds>;
}) => Promise<import("./tvShow").TvShowExternalIds>;
getImages: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/images").TvShowImages>;
getKeywords: (tvShowId: string) => Promise<import("./tv/{tv_id}/keywords").TvShowKeywords>;
}) => Promise<import("./tvShow").TvShowImages>;
getKeywords: (tvShowId: string) => Promise<import("./tvShow").TvShowKeywords>;
getRecommendations: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
page?: number | undefined;
}) => Promise<import("./tv/{tv_id}/recommendations").TvShowRecommendations>;
}) => Promise<import("./tvShow").TvShowRecommendations>;
getReviews: (tvShowId: string, params?: {

@@ -279,3 +279,3 @@ language?: import("./configuration/languages").Language | undefined;

}) => Promise<import("./tv/{tv_id}/reviews").TvShowReviews>;
getScreenedTheatrically: (tvShowId: string) => Promise<import("./tv/{tv_id}/screened_theatrically").TvShowScreenedTheatrically>;
getScreenedTheatrically: (tvShowId: string) => Promise<import("./tvShow").TvShowScreenedTheatrically>;
getSimilar: (tvShowId: string, params?: {

@@ -285,7 +285,7 @@ language?: import("./configuration/languages").Language | undefined;

}) => Promise<import("./tv/{tv_id}/similar").SimilarTvShows>;
getTranslations: (tvShowId: string) => Promise<import("./tv/{tv_id}/translations").TvShowTranslations>;
getTranslations: (tvShowId: string) => Promise<import("./tvShow").TvShowTranslations>;
getVideos: (tvShowId: string, params?: {
language?: import("./configuration/languages").Language | undefined;
}) => Promise<import("./tv/{tv_id}/videos").TvShowVideos>;
getWatchProviders: (tvShowId: string) => Promise<import("./tv/{tv_id}/videos").TvShowVideos>;
}) => Promise<import("./tvShow").TvShowVideos>;
getWatchProviders: (tvShowId: string) => Promise<import("./tvShow").TvShowVideos>;
rateTvShow: (tvShowId: string) => Promise<void>;

@@ -292,0 +292,0 @@ deleteRating: (tvShowId: string) => Promise<void>;

import { Language } from "./configuration/languages";
import { MovieDetails } from "./movie/{movie_id}";
import { MovieCredits } from "./movie/{movie_id}/credits";
import { MovieDetails } from "./movie/{movie_id}/details";
import { MovieImages } from "./movie/{movie_id}/images";

@@ -8,2 +8,3 @@ import { MovieKeywords } from "./movie/{movie_id}/keywords";

import { MovieRecommendations } from "./movie/{movie_id}/recommendations";
export { MovieCredits, MovieDetails, MovieImages, MovieKeywords, MovieLists, MovieRecommendations, };
declare const _default: {

@@ -10,0 +11,0 @@ /**

@@ -13,4 +13,4 @@ "use strict";

const _1 = require(".");
const _movie_id_1 = require("./movie/{movie_id}");
const credits_1 = require("./movie/{movie_id}/credits");
const details_1 = require("./movie/{movie_id}/details");
const images_1 = require("./movie/{movie_id}/images");

@@ -27,3 +27,3 @@ const keywords_1 = require("./movie/{movie_id}/keywords");

getDetails: (movieId, params = {}) => __awaiter(void 0, void 0, void 0, function* () {
return yield (0, _1.tmdbGet)(`/movie/${movieId}`, { params }, _movie_id_1.mockMovieDetails);
return yield (0, _1.tmdbGet)(`/movie/${movieId}`, { params }, details_1.mockMovieDetails);
}),

@@ -30,0 +30,0 @@ getAccountState: () => __awaiter(void 0, void 0, void 0, function* () { }),

import { Country } from "./configuration/countries";
import { Language } from "./configuration/languages";
import { CollectionsSearchResults } from "./search/collections";
import { CompaniesSearchResults } from "./search/companies";
import { KeywordsSearchResults } from "./search/keywords";
import { MoviesSearchResults } from "./search/movies";
import { MultiSearchResults } from "./search/multi";
import { PeopleSearchResults } from "./search/people";
import { TvShowsSearchResults } from "./search/tv-shows";
import { CollectionSearchResult, CollectionsSearchResults } from "./search/collections";
import { CompaniesSearchResults, CompanySearchResult } from "./search/companies";
import { KeywordSearchResult, KeywordsSearchResults } from "./search/keywords";
import { MovieSearchResult, MoviesSearchResults } from "./search/movies";
import { MultiMovieSearchResult, MultiPersonSearchResult, MultiSearchResults, MultiTvShowSearchResult } from "./search/multi";
import { PeopleSearchResults, PersonSearchResult } from "./search/people";
import { TvShowSearchResult, TvShowsSearchResults } from "./search/tv-shows";
export { CollectionsSearchResults, CollectionSearchResult, CompaniesSearchResults, CompanySearchResult, KeywordsSearchResults, KeywordSearchResult, MoviesSearchResults, MovieSearchResult, MultiSearchResults, MultiMovieSearchResult, MultiPersonSearchResult, MultiTvShowSearchResult, PeopleSearchResults, PersonSearchResult, TvShowsSearchResults, TvShowSearchResult, };
declare const _default: {

@@ -11,0 +12,0 @@ /**

import { PaginatedResponse } from "..";
export interface CollectionsSearchResult {
export interface CollectionSearchResult {
adult: boolean;

@@ -12,3 +12,3 @@ backdrop_path: string;

}
export declare type CollectionsSearchResults = PaginatedResponse<CollectionsSearchResult>;
export declare type CollectionsSearchResults = PaginatedResponse<CollectionSearchResult>;
export declare const mockCollectionsSearchResults: CollectionsSearchResults;
import { Language } from "./configuration/languages";
import { TvShowDetails } from "./tv/{tv_id}";
import { TvShowAggregateCredits } from "./tv/{tv_id}/aggregate_credits";

@@ -7,2 +6,3 @@ import { TvShowAlternativeTitles } from "./tv/{tv_id}/alternative_titles";

import { TvShowCredits } from "./tv/{tv_id}/credits";
import { TvShowDetails } from "./tv/{tv_id}/details";
import { TvShowEpisodeGroups } from "./tv/{tv_id}/episode_groups";

@@ -18,2 +18,3 @@ import { TvShowExternalIds } from "./tv/{tv_id}/external_ids";

import { TvShowVideos } from "./tv/{tv_id}/videos";
export { TvShowAggregateCredits, TvShowAlternativeTitles, TvShowContentRatings, TvShowDetails, TvShowEpisodeGroups, TvShowExternalIds, TvShowImages, TvShowKeywords, TvShowRecommendations, TvShowScreenedTheatrically, TvShowTranslations, TvShowVideos, };
declare const _default: {

@@ -20,0 +21,0 @@ /**

@@ -13,3 +13,2 @@ "use strict";

const _1 = require(".");
const _tv_id_1 = require("./tv/{tv_id}");
const aggregate_credits_1 = require("./tv/{tv_id}/aggregate_credits");

@@ -19,2 +18,3 @@ const alternative_titles_1 = require("./tv/{tv_id}/alternative_titles");

const credits_1 = require("./tv/{tv_id}/credits");
const details_1 = require("./tv/{tv_id}/details");
const episode_groups_1 = require("./tv/{tv_id}/episode_groups");

@@ -38,3 +38,3 @@ const external_ids_1 = require("./tv/{tv_id}/external_ids");

// TODO add append to response values
return yield (0, _1.tmdbGet)(`/tv/${tvShowId}`, { params }, _tv_id_1.mockTvShowDetails);
return yield (0, _1.tmdbGet)(`/tv/${tvShowId}`, { params }, details_1.mockTvShowDetails);
}),

@@ -41,0 +41,0 @@ getAccountStates: () => __awaiter(void 0, void 0, void 0, function* () { }),

{
"version": "0.0.4",
"version": "0.0.5",
"name": "tmdb-ts-api",

@@ -4,0 +4,0 @@ "author": "Josh Medeski<josh@medeskisolutions.com>",

@@ -17,2 +17,9 @@ import { tmdbGet } from "."

export {
ApiConfiguration,
CountriesConfiguration,
LanguagesConfiguration,
PrimaryTranslations,
}
export default {

@@ -19,0 +26,0 @@ /**

import { tmdbGet } from "."
import { Language } from "./configuration/languages"
import { MovieDetails, mockMovieDetails } from "./movie/{movie_id}"
import { MovieCredits, mockMovieCredits } from "./movie/{movie_id}/credits"
import { MovieDetails, mockMovieDetails } from "./movie/{movie_id}/details"
import { MovieImages, mockMovieImages } from "./movie/{movie_id}/images"

@@ -13,2 +13,11 @@ import { MovieKeywords, mockMovieKeywords } from "./movie/{movie_id}/keywords"

export {
MovieCredits,
MovieDetails,
MovieImages,
MovieKeywords,
MovieLists,
MovieRecommendations,
}
export default {

@@ -15,0 +24,0 @@ /**

@@ -5,2 +5,3 @@ import { tmdbGet } from "."

import {
CollectionSearchResult,
CollectionsSearchResults,

@@ -11,12 +12,29 @@ mockCollectionsSearchResults,

CompaniesSearchResults,
CompanySearchResult,
mockCompaniesSearchResults,
} from "./search/companies"
import {
KeywordSearchResult,
KeywordsSearchResults,
mockKeywordsSearchResults,
} from "./search/keywords"
import { MoviesSearchResults, mockMoviesSearchResults } from "./search/movies"
import { MultiSearchResults, mockMultiSearchResults } from "./search/multi"
import { PeopleSearchResults, mockPeopleSearchResults } from "./search/people"
import {
MovieSearchResult,
MoviesSearchResults,
mockMoviesSearchResults,
} from "./search/movies"
import {
MultiMovieSearchResult,
MultiPersonSearchResult,
MultiSearchResults,
MultiTvShowSearchResult,
mockMultiSearchResults,
} from "./search/multi"
import {
PeopleSearchResults,
PersonSearchResult,
mockPeopleSearchResults,
} from "./search/people"
import {
TvShowSearchResult,
TvShowsSearchResults,

@@ -26,2 +44,21 @@ mockTvShowsSearchResults,

export {
CollectionsSearchResults,
CollectionSearchResult,
CompaniesSearchResults,
CompanySearchResult,
KeywordsSearchResults,
KeywordSearchResult,
MoviesSearchResults,
MovieSearchResult,
MultiSearchResults,
MultiMovieSearchResult,
MultiPersonSearchResult,
MultiTvShowSearchResult,
PeopleSearchResults,
PersonSearchResult,
TvShowsSearchResults,
TvShowSearchResult,
}
export default {

@@ -28,0 +65,0 @@ /**

import { PaginatedResponse } from ".."
export interface CollectionsSearchResult {
export interface CollectionSearchResult {
adult: boolean

@@ -14,4 +14,3 @@ backdrop_path: string

export type CollectionsSearchResults =
PaginatedResponse<CollectionsSearchResult>
export type CollectionsSearchResults = PaginatedResponse<CollectionSearchResult>

@@ -18,0 +17,0 @@ export const mockCollectionsSearchResults: CollectionsSearchResults = {

import { tmdbGet } from "."
import { Language } from "./configuration/languages"
import { TvShowDetails, mockTvShowDetails } from "./tv/{tv_id}"
import {

@@ -17,2 +16,3 @@ TvShowAggregateCredits,

import { TvShowCredits, mockTvShowCredits } from "./tv/{tv_id}/credits"
import { TvShowDetails, mockTvShowDetails } from "./tv/{tv_id}/details"
import {

@@ -44,2 +44,17 @@ TvShowEpisodeGroups,

export {
TvShowAggregateCredits,
TvShowAlternativeTitles,
TvShowContentRatings,
TvShowDetails,
TvShowEpisodeGroups,
TvShowExternalIds,
TvShowImages,
TvShowKeywords,
TvShowRecommendations,
TvShowScreenedTheatrically,
TvShowTranslations,
TvShowVideos,
}
export default {

@@ -46,0 +61,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc