@justwicked/tmdb-client 1.0.1 → 1.0.3

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.
package/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # TMDB Client Module
2
2
 
3
- A simple **TypeScript client** for **The Movie Database (TMDB) API (v3)**.
3
+ A simple TypeScript client for [The Movie Database API](https://developer.themoviedb.org/reference/getting-started)
4
+
4
5
  ---
5
6
 
6
7
  ### Basic Usage
7
8
 
8
9
  ```ts
9
10
  import 'server-only';
10
- import { TmdbClient } from '@justwicked/tmdb-api-wrapper';
11
+ import { TmdbClient } from '@justwicked/tmdb-client';
11
12
 
12
13
  const tmdbApi = new TmdbClient({
13
14
  next: {
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@justwicked/tmdb-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A lightweight TypeScript Client for the TMDB API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",