@justwicked/tmdb-client 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v7.17.0 🍺
2
+ * Generated by orval v7.21.0 🍺
3
3
  * Do not edit manually.
4
4
  * tmdb-api
5
5
  * OpenAPI spec version: 3
@@ -8942,8 +8942,8 @@ export declare const tvSeriesScreenedTheatrically: (seriesId: number, options?:
8942
8942
  * Get the similar TV shows.
8943
8943
  * @summary Similar
8944
8944
  */
8945
- export declare const getTvSeriesSimilarUrl: (seriesId: string, params?: TvSeriesSimilarParams) => string;
8946
- export declare const tvSeriesSimilar: (seriesId: string, params?: TvSeriesSimilarParams, options?: RequestInit) => Promise<TvSeriesSimilar200>;
8945
+ export declare const getTvSeriesSimilarUrl: (seriesId: number, params?: TvSeriesSimilarParams) => string;
8946
+ export declare const tvSeriesSimilar: (seriesId: number, params?: TvSeriesSimilarParams, options?: RequestInit) => Promise<TvSeriesSimilar200>;
8947
8947
  /**
8948
8948
  * Get the translations that have been added to a TV show.
8949
8949
  * @summary Translations
@@ -27,7 +27,7 @@ export default class TVService {
27
27
  getRecommendations(seriesId: number, params?: TvSeriesRecommendationsParams): Promise<import("../../types").TvSeriesRecommendations200>;
28
28
  getReviews(seriesId: number, params?: TvSeriesReviewsParams): Promise<import("../../types").TvSeriesReviews200>;
29
29
  getScreenedTheatrically(seriesId: number): Promise<import("../../types").TvSeriesScreenedTheatrically200>;
30
- getSimilar(seriesId: string, params?: TvSeriesSimilarParams): Promise<import("../../types").TvSeriesSimilar200>;
30
+ getSimilar(seriesId: number, params?: TvSeriesSimilarParams): Promise<import("../../types").TvSeriesSimilar200>;
31
31
  getTranslations(seriesId: number): Promise<import("../../types").TvSeriesTranslations200>;
32
32
  getVideos(seriesId: number, params?: TvSeriesVideosParams): Promise<import("../../types").TvSeriesVideos200>;
33
33
  getWatchProviders(seriesId: number): Promise<import("../../types").TvSeriesWatchProviders200>;
@@ -24,24 +24,24 @@ export declare class TmdbClient {
24
24
  readonly defaultOptions: CustomRequestInit;
25
25
  account: AccountService;
26
26
  authentication: AuthenticationService;
27
- certification: CertificationService;
28
- collection: CollectionService;
29
- company: CompanyService;
30
- configuration: ConfigurationService;
31
- credit: CreditService;
27
+ certifications: CertificationService;
28
+ collections: CollectionService;
29
+ companies: CompanyService;
30
+ configurations: ConfigurationService;
31
+ credits: CreditService;
32
32
  discover: DiscoverService;
33
33
  find: FindService;
34
- genre: GenreService;
35
- guestSession: GuestSessionService;
36
- keyword: KeywordService;
37
- list: ListService;
38
- movie: MovieService;
39
- network: NetworkService;
40
- person: PersonService;
41
- review: ReviewService;
34
+ genres: GenreService;
35
+ guestSessions: GuestSessionService;
36
+ keywords: KeywordService;
37
+ lists: ListService;
38
+ movies: MovieService;
39
+ networks: NetworkService;
40
+ persons: PersonService;
41
+ reviews: ReviewService;
42
42
  search: SearchService;
43
43
  trending: TrendingService;
44
- tv: TVService;
44
+ tvShows: TVService;
45
45
  watch: WatchService;
46
46
  constructor(defaultOptions: CustomRequestInit);
47
47
  }
@@ -23,47 +23,47 @@ export class TmdbClient {
23
23
  defaultOptions;
24
24
  account;
25
25
  authentication;
26
- certification;
27
- collection;
28
- company;
29
- configuration;
30
- credit;
26
+ certifications;
27
+ collections;
28
+ companies;
29
+ configurations;
30
+ credits;
31
31
  discover;
32
32
  find;
33
- genre;
34
- guestSession;
35
- keyword;
36
- list;
37
- movie;
38
- network;
39
- person;
40
- review;
33
+ genres;
34
+ guestSessions;
35
+ keywords;
36
+ lists;
37
+ movies;
38
+ networks;
39
+ persons;
40
+ reviews;
41
41
  search;
42
42
  trending;
43
- tv;
43
+ tvShows;
44
44
  watch;
45
45
  constructor(defaultOptions) {
46
46
  this.defaultOptions = defaultOptions;
47
47
  this.account = new AccountService(defaultOptions);
48
48
  this.authentication = new AuthenticationService(defaultOptions);
49
- this.certification = new CertificationService(defaultOptions);
50
- this.collection = new CollectionService(defaultOptions);
51
- this.company = new CompanyService(defaultOptions);
52
- this.configuration = new ConfigurationService(defaultOptions);
53
- this.credit = new CreditService(defaultOptions);
49
+ this.certifications = new CertificationService(defaultOptions);
50
+ this.collections = new CollectionService(defaultOptions);
51
+ this.companies = new CompanyService(defaultOptions);
52
+ this.configurations = new ConfigurationService(defaultOptions);
53
+ this.credits = new CreditService(defaultOptions);
54
54
  this.discover = new DiscoverService(defaultOptions);
55
55
  this.find = new FindService(defaultOptions);
56
- this.genre = new GenreService(defaultOptions);
57
- this.guestSession = new GuestSessionService(defaultOptions);
58
- this.keyword = new KeywordService(defaultOptions);
59
- this.list = new ListService(defaultOptions);
60
- this.movie = new MovieService(defaultOptions);
61
- this.network = new NetworkService(defaultOptions);
62
- this.person = new PersonService(defaultOptions);
63
- this.review = new ReviewService(defaultOptions);
56
+ this.genres = new GenreService(defaultOptions);
57
+ this.guestSessions = new GuestSessionService(defaultOptions);
58
+ this.keywords = new KeywordService(defaultOptions);
59
+ this.lists = new ListService(defaultOptions);
60
+ this.movies = new MovieService(defaultOptions);
61
+ this.networks = new NetworkService(defaultOptions);
62
+ this.persons = new PersonService(defaultOptions);
63
+ this.reviews = new ReviewService(defaultOptions);
64
64
  this.search = new SearchService(defaultOptions);
65
65
  this.trending = new TrendingService(defaultOptions);
66
- this.tv = new TVService(defaultOptions);
66
+ this.tvShows = new TVService(defaultOptions);
67
67
  this.watch = new WatchService(defaultOptions);
68
68
  }
69
69
  }
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@justwicked/tmdb-client",
3
- "version": "1.0.2",
4
- "description": "A lightweight TypeScript Client for the TMDB API.",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs",
13
- "types": "./dist/index.d.ts"
14
- }
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "scripts": {
20
- "clean": "rimraf dist",
21
- "build": "npm run clean && npm run generate:api && tsc",
22
- "prepare": "npm run build",
23
- "format": "prettier . --write",
24
- "generate:api": "rimraf ./src/client/__generated__/api ./src/client/__generated__/schema && orval"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/justwickedcode/tmdb-api-wrapper.git"
29
- },
30
- "keywords": [
31
- "tmdb",
32
- "api",
33
- "rest",
34
- "wrapper"
35
- ],
36
- "author": "justwickedcode",
37
- "license": "MIT",
38
- "devDependencies": {
39
- "dotenv": "^17.2.3",
40
- "orval": "^7.17.0",
41
- "prettier": "^3.6.2",
42
- "rimraf": "^6.0.1",
43
- "typescript": "^5.0.0"
44
- }
45
- }
1
+ {
2
+ "name": "@justwicked/tmdb-client",
3
+ "version": "1.0.4",
4
+ "description": "A lightweight TypeScript Client for the TMDB API.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "clean": "rimraf dist",
21
+ "build": "npm run clean && npm run generate:api && tsc",
22
+ "prepare": "npm run build",
23
+ "format": "prettier . --write",
24
+ "generate:api": "rimraf ./src/client/__generated__/api ./src/client/__generated__/schema && orval"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/justwickedcode/tmdb-client.git"
29
+ },
30
+ "keywords": [
31
+ "tmdb",
32
+ "api",
33
+ "rest",
34
+ "wrapper"
35
+ ],
36
+ "author": "justwickedcode",
37
+ "license": "MIT",
38
+ "devDependencies": {
39
+ "dotenv": "^17.3.1",
40
+ "orval": "^7.21.0",
41
+ "prettier": "^3.8.1",
42
+ "rimraf": "^6.1.2",
43
+ "typescript": "^5.9.3"
44
+ }
45
+ }