@tdanks2000/tmdb-wrapper 1.0.0 → 1.0.2

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.
Files changed (112) hide show
  1. package/README.md +11 -0
  2. package/dist/@types/endpoints/configuration.d.ts +1 -0
  3. package/dist/@types/endpoints/configuration.d.ts.map +1 -1
  4. package/dist/@types/endpoints/discover.d.ts +53 -0
  5. package/dist/@types/endpoints/discover.d.ts.map +1 -1
  6. package/dist/@types/endpoints/genre.d.ts +7 -0
  7. package/dist/@types/endpoints/genre.d.ts.map +1 -0
  8. package/dist/@types/endpoints/genre.js +2 -0
  9. package/dist/@types/endpoints/index.d.ts +1 -0
  10. package/dist/@types/endpoints/index.d.ts.map +1 -1
  11. package/dist/@types/endpoints/index.js +1 -0
  12. package/dist/@types/endpoints/movies.d.ts +7 -1
  13. package/dist/@types/endpoints/movies.d.ts.map +1 -1
  14. package/dist/@types/endpoints/search.d.ts +24 -1
  15. package/dist/@types/endpoints/search.d.ts.map +1 -1
  16. package/dist/@types/endpoints/tvEpisode.d.ts +13 -1
  17. package/dist/@types/endpoints/tvEpisode.d.ts.map +1 -1
  18. package/dist/@types/endpoints/tvSeasons.d.ts +13 -1
  19. package/dist/@types/endpoints/tvSeasons.d.ts.map +1 -1
  20. package/dist/@types/models/baseEndpoint.d.ts +1 -1
  21. package/dist/@types/models/baseEndpoint.js +1 -1
  22. package/dist/endpoints/account.d.ts +12 -1
  23. package/dist/endpoints/account.d.ts.map +1 -1
  24. package/dist/endpoints/account.js +12 -1
  25. package/dist/endpoints/certification.d.ts +16 -1
  26. package/dist/endpoints/certification.d.ts.map +1 -1
  27. package/dist/endpoints/certification.js +16 -1
  28. package/dist/endpoints/changes.d.ts +23 -1
  29. package/dist/endpoints/changes.d.ts.map +1 -1
  30. package/dist/endpoints/changes.js +26 -4
  31. package/dist/endpoints/collections.d.ts +26 -1
  32. package/dist/endpoints/collections.d.ts.map +1 -1
  33. package/dist/endpoints/collections.js +26 -1
  34. package/dist/endpoints/companies.d.ts +23 -1
  35. package/dist/endpoints/companies.d.ts.map +1 -1
  36. package/dist/endpoints/companies.js +23 -1
  37. package/dist/endpoints/configuration.d.ts +12 -1
  38. package/dist/endpoints/configuration.d.ts.map +1 -1
  39. package/dist/endpoints/configuration.js +12 -1
  40. package/dist/endpoints/credits.d.ts +13 -1
  41. package/dist/endpoints/credits.d.ts.map +1 -1
  42. package/dist/endpoints/credits.js +13 -1
  43. package/dist/endpoints/discover.d.ts +18 -55
  44. package/dist/endpoints/discover.d.ts.map +1 -1
  45. package/dist/endpoints/discover.js +18 -1
  46. package/dist/endpoints/find.d.ts +14 -1
  47. package/dist/endpoints/find.d.ts.map +1 -1
  48. package/dist/endpoints/find.js +14 -1
  49. package/dist/endpoints/genre.d.ts +18 -7
  50. package/dist/endpoints/genre.d.ts.map +1 -1
  51. package/dist/endpoints/genre.js +18 -1
  52. package/dist/endpoints/keywords.d.ts +19 -1
  53. package/dist/endpoints/keywords.d.ts.map +1 -1
  54. package/dist/endpoints/keywords.js +22 -4
  55. package/dist/endpoints/movies.d.ts +115 -9
  56. package/dist/endpoints/movies.d.ts.map +1 -1
  57. package/dist/endpoints/movies.js +115 -3
  58. package/dist/endpoints/networks.d.ts +23 -1
  59. package/dist/endpoints/networks.d.ts.map +1 -1
  60. package/dist/endpoints/networks.js +23 -1
  61. package/dist/endpoints/people.d.ts +69 -1
  62. package/dist/endpoints/people.d.ts.map +1 -1
  63. package/dist/endpoints/people.js +69 -1
  64. package/dist/endpoints/review.d.ts +13 -1
  65. package/dist/endpoints/review.d.ts.map +1 -1
  66. package/dist/endpoints/review.js +13 -1
  67. package/dist/endpoints/search.d.ts +43 -24
  68. package/dist/endpoints/search.d.ts.map +1 -1
  69. package/dist/endpoints/search.js +43 -1
  70. package/dist/endpoints/trending.d.ts +17 -2
  71. package/dist/endpoints/trending.d.ts.map +1 -1
  72. package/dist/endpoints/trending.js +16 -1
  73. package/dist/endpoints/tvEpisodes.d.ts +48 -11
  74. package/dist/endpoints/tvEpisodes.d.ts.map +1 -1
  75. package/dist/endpoints/tvEpisodes.js +50 -1
  76. package/dist/endpoints/tvSeasons.d.ts +56 -11
  77. package/dist/endpoints/tvSeasons.d.ts.map +1 -1
  78. package/dist/endpoints/tvSeasons.js +58 -1
  79. package/dist/endpoints/tvShows.d.ts +135 -4
  80. package/dist/endpoints/tvShows.d.ts.map +1 -1
  81. package/dist/endpoints/tvShows.js +134 -3
  82. package/dist/index.d.ts +1 -1
  83. package/dist/index.js +1 -1
  84. package/package.json +4 -3
  85. package/src/@types/endpoints/configuration.ts +1 -0
  86. package/src/@types/endpoints/discover.ts +56 -0
  87. package/src/@types/endpoints/genre.ts +3 -0
  88. package/src/@types/endpoints/index.ts +1 -0
  89. package/src/@types/endpoints/movies.ts +8 -1
  90. package/src/@types/endpoints/search.ts +30 -1
  91. package/src/@types/endpoints/tvEpisode.ts +15 -1
  92. package/src/@types/endpoints/tvSeasons.ts +15 -1
  93. package/src/endpoints/account.ts +11 -0
  94. package/src/endpoints/certification.ts +15 -0
  95. package/src/endpoints/changes.ts +25 -3
  96. package/src/endpoints/collections.ts +25 -0
  97. package/src/endpoints/companies.ts +22 -0
  98. package/src/endpoints/configuration.ts +11 -0
  99. package/src/endpoints/credits.ts +12 -0
  100. package/src/endpoints/discover.ts +24 -57
  101. package/src/endpoints/find.ts +13 -0
  102. package/src/endpoints/genre.ts +18 -5
  103. package/src/endpoints/keywords.ts +21 -3
  104. package/src/endpoints/movies.ts +114 -8
  105. package/src/endpoints/networks.ts +22 -0
  106. package/src/endpoints/people.ts +68 -0
  107. package/src/endpoints/review.ts +12 -0
  108. package/src/endpoints/search.ts +47 -32
  109. package/src/endpoints/trending.ts +17 -2
  110. package/src/endpoints/tvEpisodes.ts +50 -13
  111. package/src/endpoints/tvSeasons.ts +58 -13
  112. package/src/endpoints/tvShows.ts +138 -3
@@ -10,12 +10,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PeopleEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_PERSON = '/person';
15
+ /**
16
+ * Represents an endpoint for accessing information about people.
17
+ */
15
18
  class PeopleEndpoint extends _types_1.BaseEndpoint {
19
+ /**
20
+ * Constructs a new PeopleEndpoint instance.
21
+ * @param {string} access_token - The access token used for authentication.
22
+ */
16
23
  constructor(access_token) {
17
24
  super(access_token);
18
25
  }
26
+ /**
27
+ * Retrieves details of a specific person asynchronously.
28
+ * @param {number} id - The ID of the person.
29
+ * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
30
+ * @param {string} [language] - Optional parameter for specifying the language.
31
+ * @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
32
+ */
19
33
  details(id, appendToResponse, language) {
20
34
  return __awaiter(this, void 0, void 0, function* () {
21
35
  const options = {
@@ -25,51 +39,105 @@ class PeopleEndpoint extends _types_1.BaseEndpoint {
25
39
  return yield this.api.get(`${BASE_PERSON}/${id}`, options);
26
40
  });
27
41
  }
42
+ /**
43
+ * Retrieves changes made to a specific person asynchronously.
44
+ * @param {number} id - The ID of the person.
45
+ * @param {ChangeOption} [options] - Optional parameters for filtering changes.
46
+ * @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
47
+ */
28
48
  changes(id, options) {
29
49
  return __awaiter(this, void 0, void 0, function* () {
30
50
  return yield this.api.get(`${BASE_PERSON}/${id}/changes`, options);
31
51
  });
32
52
  }
53
+ /**
54
+ * Retrieves movie credits of a specific person asynchronously.
55
+ * @param {number} id - The ID of the person.
56
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
57
+ * @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
58
+ */
33
59
  movieCredits(id, options) {
34
60
  return __awaiter(this, void 0, void 0, function* () {
35
61
  return yield this.api.get(`${BASE_PERSON}/${id}/movie_credits`, options);
36
62
  });
37
63
  }
64
+ /**
65
+ * Retrieves TV show credits of a specific person asynchronously.
66
+ * @param {number} id - The ID of the person.
67
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
68
+ * @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
69
+ */
38
70
  tvShowCredits(id, options) {
39
71
  return __awaiter(this, void 0, void 0, function* () {
40
72
  return yield this.api.get(`${BASE_PERSON}/${id}/tv_credits`, options);
41
73
  });
42
74
  }
75
+ /**
76
+ * Retrieves combined credits of a specific person asynchronously.
77
+ * @param {number} id - The ID of the person.
78
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
79
+ * @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
80
+ */
43
81
  combinedCredits(id, options) {
44
82
  return __awaiter(this, void 0, void 0, function* () {
45
83
  return yield this.api.get(`${BASE_PERSON}/${id}/combined_credits`, options);
46
84
  });
47
85
  }
86
+ /**
87
+ * Retrieves external IDs of a specific person asynchronously.
88
+ * @param {number} id - The ID of the person.
89
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
90
+ */
48
91
  externalId(id) {
49
92
  return __awaiter(this, void 0, void 0, function* () {
50
93
  return yield this.api.get(`${BASE_PERSON}/${id}/external_ids`);
51
94
  });
52
95
  }
96
+ /**
97
+ * Retrieves images of a specific person asynchronously.
98
+ * @param {number} id - The ID of the person.
99
+ * @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
100
+ */
53
101
  images(id) {
54
102
  return __awaiter(this, void 0, void 0, function* () {
55
103
  return yield this.api.get(`${BASE_PERSON}/${id}/images`);
56
104
  });
57
105
  }
106
+ /**
107
+ * Retrieves tagged images of a specific person asynchronously.
108
+ * @param {number} id - The ID of the person.
109
+ * @param {PageOption} [options] - Optional parameters for specifying pagination options.
110
+ * @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
111
+ */
58
112
  taggedImages(id, options) {
59
113
  return __awaiter(this, void 0, void 0, function* () {
60
114
  return yield this.api.get(`${BASE_PERSON}/${id}/tagged_images`, options);
61
115
  });
62
116
  }
117
+ /**
118
+ * Retrieves translations of a specific person asynchronously.
119
+ * @param {number} id - The ID of the person.
120
+ * @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
121
+ */
63
122
  translation(id) {
64
123
  return __awaiter(this, void 0, void 0, function* () {
65
124
  return yield this.api.get(`${BASE_PERSON}/${id}/translations`);
66
125
  });
67
126
  }
127
+ /**
128
+ * Retrieves details of the latest person asynchronously.
129
+ * @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
130
+ */
68
131
  latest() {
69
132
  return __awaiter(this, void 0, void 0, function* () {
70
133
  return yield this.api.get(`${BASE_PERSON}/latest`);
71
134
  });
72
135
  }
136
+ /**
137
+ * Retrieves popular persons asynchronously.
138
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
139
+ * @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
140
+ */
73
141
  popular(options) {
74
142
  return __awaiter(this, void 0, void 0, function* () {
75
143
  return yield this.api.get(`${BASE_PERSON}/popular`, options);
@@ -1,6 +1,18 @@
1
- import { BaseEndpoint, ReviewDetails } from '@/@types';
1
+ import { BaseEndpoint, ReviewDetails } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing review details.
4
+ */
2
5
  export declare class ReviewEndpoint extends BaseEndpoint {
6
+ /**
7
+ * Constructs a new ReviewEndpoint instance.
8
+ * @param {string} access_token - The access token used for authentication.
9
+ */
3
10
  constructor(access_token: string);
11
+ /**
12
+ * Retrieves details of a specific review asynchronously.
13
+ * @param {string} id - The ID of the review.
14
+ * @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
15
+ */
4
16
  details(id: string): Promise<ReviewDetails>;
5
17
  }
6
18
  //# sourceMappingURL=review.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/endpoints/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,qBAAa,cAAe,SAAQ,YAAY;gBAClC,YAAY,EAAE,MAAM;IAI1B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGlD"}
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/endpoints/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGlD"}
@@ -10,11 +10,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ReviewEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
+ /**
15
+ * Represents an endpoint for accessing review details.
16
+ */
14
17
  class ReviewEndpoint extends _types_1.BaseEndpoint {
18
+ /**
19
+ * Constructs a new ReviewEndpoint instance.
20
+ * @param {string} access_token - The access token used for authentication.
21
+ */
15
22
  constructor(access_token) {
16
23
  super(access_token);
17
24
  }
25
+ /**
26
+ * Retrieves details of a specific review asynchronously.
27
+ * @param {string} id - The ID of the review.
28
+ * @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
29
+ */
18
30
  details(id) {
19
31
  return __awaiter(this, void 0, void 0, function* () {
20
32
  return yield this.api.get(`/review/${id}`);
@@ -1,39 +1,58 @@
1
- import { BaseEndpoint, Collection, Company, LanguageOption, Movie, MultiSearchResult, PageOption, Person, RegionOption, Search, TV } from '@/@types';
2
- export interface SearchOptions {
3
- query: string;
4
- page?: number;
5
- }
6
- export interface MovieSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
7
- include_adult?: boolean;
8
- year?: number;
9
- primary_release_year?: number;
10
- }
11
- export interface CollectionSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
12
- include_adult?: boolean;
13
- }
14
- export interface TvSearchOptions extends SearchOptions, LanguageOption, PageOption {
15
- include_adult?: boolean;
16
- year?: number;
17
- first_air_date_year?: number;
18
- }
19
- export interface PeopleSearchOptions extends SearchOptions, LanguageOption, PageOption {
20
- include_adult?: boolean;
21
- }
22
- export interface MultiSearchOptions extends SearchOptions, LanguageOption, PageOption {
23
- include_adult?: boolean;
24
- }
1
+ import { BaseEndpoint, Collection, Company, Movie, MovieSearchOptions, MultiSearchOptions, MultiSearchResult, PeopleSearchOptions, Person, Search, SearchOptions, TV, TvSearchOptions } from '../@types';
2
+ /**
3
+ * Represents an endpoint for performing various search operations.
4
+ */
25
5
  export declare class SearchEndpoint extends BaseEndpoint {
26
6
  protected readonly access_token: string;
7
+ /**
8
+ * Constructs a new SearchEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
27
11
  constructor(access_token: string);
12
+ /**
13
+ * Searches for companies asynchronously.
14
+ * @param {SearchOptions} options - The search options.
15
+ * @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
16
+ */
28
17
  companies(options: SearchOptions): Promise<Search<Company>>;
18
+ /**
19
+ * Searches for collections asynchronously.
20
+ * @param {SearchOptions} options - The search options.
21
+ * @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
22
+ */
29
23
  collections(options: SearchOptions): Promise<Search<Collection>>;
24
+ /**
25
+ * Searches for keywords asynchronously.
26
+ * @param {SearchOptions} options - The search options.
27
+ * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
28
+ */
30
29
  keywords(options: SearchOptions): Promise<Search<{
31
30
  id: string;
32
31
  name: string;
33
32
  }>>;
33
+ /**
34
+ * Searches for movies asynchronously.
35
+ * @param {MovieSearchOptions} options - The search options.
36
+ * @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
37
+ */
34
38
  movies(options: MovieSearchOptions): Promise<Search<Movie>>;
39
+ /**
40
+ * Searches for people asynchronously.
41
+ * @param {PeopleSearchOptions} options - The search options.
42
+ * @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
43
+ */
35
44
  people(options: PeopleSearchOptions): Promise<Search<Person>>;
45
+ /**
46
+ * Searches for TV shows asynchronously.
47
+ * @param {TvSearchOptions} options - The search options.
48
+ * @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
49
+ */
36
50
  tv(options: TvSearchOptions): Promise<Search<TV>>;
51
+ /**
52
+ * Performs a multi-search asynchronously.
53
+ * @param {MultiSearchOptions} options - The search options.
54
+ * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
55
+ */
37
56
  multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
38
57
  }
39
58
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,OAAO,EACP,cAAc,EACd,KAAK,EACL,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,YAAY,EACZ,MAAM,EACN,EAAE,EACH,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,uBA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@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SearchEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_SEARCH = '/search';
15
+ /**
16
+ * Represents an endpoint for performing various search operations.
17
+ */
15
18
  class SearchEndpoint extends _types_1.BaseEndpoint {
19
+ /**
20
+ * Constructs a new SearchEndpoint instance.
21
+ * @param {string} access_token - The access token used for authentication.
22
+ */
16
23
  constructor(access_token) {
17
24
  super(access_token);
18
25
  this.access_token = access_token;
19
26
  }
27
+ /**
28
+ * Searches for companies asynchronously.
29
+ * @param {SearchOptions} options - The search options.
30
+ * @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
31
+ */
20
32
  companies(options) {
21
33
  return __awaiter(this, void 0, void 0, function* () {
22
34
  return yield this.api.get(`${BASE_SEARCH}/company`, options);
23
35
  });
24
36
  }
37
+ /**
38
+ * Searches for collections asynchronously.
39
+ * @param {SearchOptions} options - The search options.
40
+ * @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
41
+ */
25
42
  collections(options) {
26
43
  return __awaiter(this, void 0, void 0, function* () {
27
44
  return yield this.api.get(`${BASE_SEARCH}/collection`, options);
28
45
  });
29
46
  }
47
+ /**
48
+ * Searches for keywords asynchronously.
49
+ * @param {SearchOptions} options - The search options.
50
+ * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
51
+ */
30
52
  keywords(options) {
31
53
  return __awaiter(this, void 0, void 0, function* () {
32
54
  return yield this.api.get(`${BASE_SEARCH}/keyword`, options);
33
55
  });
34
56
  }
57
+ /**
58
+ * Searches for movies asynchronously.
59
+ * @param {MovieSearchOptions} options - The search options.
60
+ * @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
61
+ */
35
62
  movies(options) {
36
63
  return __awaiter(this, void 0, void 0, function* () {
37
64
  return yield this.api.get(`${BASE_SEARCH}/movie`, options);
38
65
  });
39
66
  }
67
+ /**
68
+ * Searches for people asynchronously.
69
+ * @param {PeopleSearchOptions} options - The search options.
70
+ * @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
71
+ */
40
72
  people(options) {
41
73
  return __awaiter(this, void 0, void 0, function* () {
42
74
  return yield this.api.get(`${BASE_SEARCH}/person`, options);
43
75
  });
44
76
  }
77
+ /**
78
+ * Searches for TV shows asynchronously.
79
+ * @param {TvSearchOptions} options - The search options.
80
+ * @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
81
+ */
45
82
  tv(options) {
46
83
  return __awaiter(this, void 0, void 0, function* () {
47
84
  return yield this.api.get(`${BASE_SEARCH}/tv`, options);
48
85
  });
49
86
  }
87
+ /**
88
+ * Performs a multi-search asynchronously.
89
+ * @param {MultiSearchOptions} options - The search options.
90
+ * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
91
+ */
50
92
  multi(options) {
51
93
  return __awaiter(this, void 0, void 0, function* () {
52
94
  return yield this.api.get(`${BASE_SEARCH}/multi`, options);
@@ -1,6 +1,21 @@
1
- import { BaseEndpoint, LanguageOption, TimeWindow, TrendingMediaType, TrendingResults } from '@/@types';
1
+ import { BaseEndpoint, LanguageOption, PageOption, TimeWindow, TrendingMediaType, TrendingResults } from '../@types';
2
+ /**
3
+ * Represents an endpoint for retrieving trending content.
4
+ */
2
5
  export declare class TrendingEndpoint extends BaseEndpoint {
6
+ /**
7
+ * Constructs a new TrendingEndpoint instance.
8
+ * @param {string} access_token - The access token used for authentication.
9
+ */
3
10
  constructor(access_token: string);
4
- trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption): Promise<TrendingResults<T>>;
11
+ /**
12
+ * Retrieves trending content asynchronously based on media type and time window.
13
+ * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
14
+ * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
15
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
16
+ * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
17
+ * @template T - The type of media being searched for (e.g., 'movie', 'tv').
18
+ */
19
+ trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
5
20
  }
6
21
  //# sourceMappingURL=trending.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trending.d.ts","sourceRoot":"","sources":["../../src/endpoints/trending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAExG,qBAAa,gBAAiB,SAAQ,YAAY;gBACpC,YAAY,EAAE,MAAM;IAI1B,QAAQ,CAAC,CAAC,SAAS,iBAAiB,EACxC,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAG/B"}
1
+ {"version":3,"file":"trending.d.ts","sourceRoot":"","sources":["../../src/endpoints/trending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpH;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;;;OAOG;IACG,QAAQ,CAAC,CAAC,SAAS,iBAAiB,EACxC,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACpC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAG/B"}
@@ -10,11 +10,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TrendingEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
+ /**
15
+ * Represents an endpoint for retrieving trending content.
16
+ */
14
17
  class TrendingEndpoint extends _types_1.BaseEndpoint {
18
+ /**
19
+ * Constructs a new TrendingEndpoint instance.
20
+ * @param {string} access_token - The access token used for authentication.
21
+ */
15
22
  constructor(access_token) {
16
23
  super(access_token);
17
24
  }
25
+ /**
26
+ * Retrieves trending content asynchronously based on media type and time window.
27
+ * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
28
+ * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
29
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
30
+ * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
31
+ * @template T - The type of media being searched for (e.g., 'movie', 'tv').
32
+ */
18
33
  trending(mediaType, timeWindow, options) {
19
34
  return __awaiter(this, void 0, void 0, function* () {
20
35
  return yield this.api.get(`/trending/${mediaType}/${timeWindow}`, options);
@@ -1,24 +1,61 @@
1
- import { AppendToResponse, AppendToResponseTvEpisodeKey, BaseEndpoint, ChangeOption, Changes, Episode, EpisodeSelection, ExternalIds, Images, LanguageOption, TvEpisodeCredit, TvEpisodeTranslations, Videos } from '@/@types';
2
- export interface TvEpisodeImageSearchOptions extends LanguageOption {
1
+ import { AppendToResponse, AppendToResponseTvEpisodeKey, BaseEndpoint, ChangeOption, Changes, Episode, EpisodeSelection, ExternalIds, Images, LanguageOption, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, Videos } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing TV episode-related information.
4
+ */
5
+ export declare class TvEpisodesEndpoint extends BaseEndpoint {
3
6
  /**
4
- * a list of ISO-639-1 values to query
7
+ * Constructs a new TvEpisodesEndpoint instance.
8
+ * @param {string} access_token - The access token used for authentication.
5
9
  */
6
- include_image_language?: string[];
7
- }
8
- export interface TvEpisodeVideoSearchOptions extends LanguageOption {
10
+ constructor(access_token: string);
9
11
  /**
10
- * a list of ISO-639-1 values to query
12
+ * Retrieves details of a specific TV episode asynchronously.
13
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
14
+ * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
15
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
16
+ * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
17
+ * A Promise that resolves with the details of the TV episode.
11
18
  */
12
- include_video_language?: string[];
13
- }
14
- export declare class TvEpisodesEndpoint extends BaseEndpoint {
15
- constructor(access_token: string);
16
19
  details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
20
+ /**
21
+ * Retrieves changes related to a specific TV episode asynchronously.
22
+ * @param {number} episodeID - The ID of the TV episode.
23
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
24
+ * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
25
+ */
17
26
  changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
27
+ /**
28
+ * Retrieves credits for a specific TV episode asynchronously.
29
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
30
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
31
+ * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
32
+ */
18
33
  credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
34
+ /**
35
+ * Retrieves external IDs for a specific TV episode asynchronously.
36
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
37
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
38
+ */
19
39
  externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
40
+ /**
41
+ * Retrieves images for a specific TV episode asynchronously.
42
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
43
+ * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
44
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
45
+ */
20
46
  images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
47
+ /**
48
+ * Retrieves translations for a specific TV episode asynchronously.
49
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
50
+ * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
51
+ */
21
52
  translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
53
+ /**
54
+ * Retrieves videos for a specific TV episode asynchronously.
55
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
56
+ * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
57
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
58
+ */
22
59
  videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
23
60
  }
24
61
  //# sourceMappingURL=tvEpisodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tvEpisodes.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvEpisodes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,cAAc,EAEd,eAAe,EACf,qBAAqB,EACrB,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAA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AE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAa1B;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAIvD;;;;;OAKG;IACG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc;IAI1E;;;;OAIG;IACG,WAAW,CAAC,gBAAgB,EAAE,gBAAgB;IAIpD;;;;;OAKG;IACG,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,2BAA2B;IAQtF;;;;OAIG;IACG,YAAY,CAAC,gBAAgB,EAAE,gBAAgB;IAIrD;;;;;OAKG;IACG,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,2BAA2B;CAOvF"}
@@ -10,35 +10,73 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TvEpisodesEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_EPISODE = (episodeSelection) => {
15
15
  return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
16
16
  };
17
+ /**
18
+ * Represents an endpoint for accessing TV episode-related information.
19
+ */
17
20
  class TvEpisodesEndpoint extends _types_1.BaseEndpoint {
21
+ /**
22
+ * Constructs a new TvEpisodesEndpoint instance.
23
+ * @param {string} access_token - The access token used for authentication.
24
+ */
18
25
  constructor(access_token) {
19
26
  super(access_token);
20
27
  }
28
+ /**
29
+ * Retrieves details of a specific TV episode asynchronously.
30
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
31
+ * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
32
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
33
+ * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
34
+ * A Promise that resolves with the details of the TV episode.
35
+ */
21
36
  details(episodeSelection, appendToResponse, options) {
22
37
  return __awaiter(this, void 0, void 0, function* () {
23
38
  const combinedOptions = Object.assign({ append_to_response: appendToResponse ? appendToResponse.join(',') : undefined }, options);
24
39
  return yield this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
25
40
  });
26
41
  }
42
+ /**
43
+ * Retrieves changes related to a specific TV episode asynchronously.
44
+ * @param {number} episodeID - The ID of the TV episode.
45
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
46
+ * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
47
+ */
27
48
  changes(episodeID, options) {
28
49
  return __awaiter(this, void 0, void 0, function* () {
29
50
  return yield this.api.get(`/tv/episode/${episodeID}/changes`, options);
30
51
  });
31
52
  }
53
+ /**
54
+ * Retrieves credits for a specific TV episode asynchronously.
55
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
56
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
57
+ * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
58
+ */
32
59
  credits(episodeSelection, options) {
33
60
  return __awaiter(this, void 0, void 0, function* () {
34
61
  return yield this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
35
62
  });
36
63
  }
64
+ /**
65
+ * Retrieves external IDs for a specific TV episode asynchronously.
66
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
67
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
68
+ */
37
69
  externalIds(episodeSelection) {
38
70
  return __awaiter(this, void 0, void 0, function* () {
39
71
  return yield this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
40
72
  });
41
73
  }
74
+ /**
75
+ * Retrieves images for a specific TV episode asynchronously.
76
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
77
+ * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
78
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
79
+ */
42
80
  images(episodeSelection, options) {
43
81
  var _a;
44
82
  return __awaiter(this, void 0, void 0, function* () {
@@ -49,11 +87,22 @@ class TvEpisodesEndpoint extends _types_1.BaseEndpoint {
49
87
  return yield this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
50
88
  });
51
89
  }
90
+ /**
91
+ * Retrieves translations for a specific TV episode asynchronously.
92
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
93
+ * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
94
+ */
52
95
  translations(episodeSelection) {
53
96
  return __awaiter(this, void 0, void 0, function* () {
54
97
  return yield this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
55
98
  });
56
99
  }
100
+ /**
101
+ * Retrieves videos for a specific TV episode asynchronously.
102
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
103
+ * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
104
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
105
+ */
57
106
  videos(episodeSelection, options) {
58
107
  var _a;
59
108
  return __awaiter(this, void 0, void 0, function* () {