@tdanks2000/tmdb-wrapper 1.0.2 → 1.1.0

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 (94) hide show
  1. package/README.md +334 -148
  2. package/dist/@types/models/baseEndpoint.d.ts.map +1 -1
  3. package/dist/endpoints/account.d.ts.map +1 -1
  4. package/dist/endpoints/certification.d.ts.map +1 -1
  5. package/dist/endpoints/changes.d.ts.map +1 -1
  6. package/dist/endpoints/collections.d.ts.map +1 -1
  7. package/dist/endpoints/collections.js +1 -1
  8. package/dist/endpoints/companies.d.ts.map +1 -1
  9. package/dist/endpoints/configuration.d.ts.map +1 -1
  10. package/dist/endpoints/credits.d.ts.map +1 -1
  11. package/dist/endpoints/discover.d.ts.map +1 -1
  12. package/dist/endpoints/find.d.ts.map +1 -1
  13. package/dist/endpoints/genre.d.ts.map +1 -1
  14. package/dist/endpoints/index.d.ts +3 -0
  15. package/dist/endpoints/index.d.ts.map +1 -1
  16. package/dist/endpoints/index.js +3 -0
  17. package/dist/endpoints/keywords.d.ts.map +1 -1
  18. package/dist/endpoints/movies.d.ts.map +1 -1
  19. package/dist/endpoints/movies.js +1 -1
  20. package/dist/endpoints/networks.d.ts.map +1 -1
  21. package/dist/endpoints/people.d.ts.map +1 -1
  22. package/dist/endpoints/review.d.ts.map +1 -1
  23. package/dist/endpoints/search.d.ts.map +1 -1
  24. package/dist/endpoints/trending.d.ts.map +1 -1
  25. package/dist/endpoints/tvEpisodes.d.ts.map +1 -1
  26. package/dist/endpoints/tvEpisodes.js +2 -2
  27. package/dist/endpoints/tvSeasons.d.ts.map +1 -1
  28. package/dist/endpoints/tvSeasons.js +2 -2
  29. package/dist/endpoints/tvShows.d.ts.map +1 -1
  30. package/dist/endpoints/tvShows.js +2 -2
  31. package/dist/endpoints/watchProviders.d.ts +33 -0
  32. package/dist/endpoints/watchProviders.d.ts.map +1 -0
  33. package/dist/endpoints/watchProviders.js +63 -0
  34. package/dist/index.d.ts +4 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +3 -0
  37. package/dist/utils/api.d.ts.map +1 -1
  38. package/dist/utils/getimagePath.d.ts +24 -4
  39. package/dist/utils/getimagePath.d.ts.map +1 -1
  40. package/dist/utils/getimagePath.js +39 -8
  41. package/package.json +28 -10
  42. package/src/@types/endpoints/account.ts +0 -17
  43. package/src/@types/endpoints/certification.ts +0 -19
  44. package/src/@types/endpoints/changes.ts +0 -29
  45. package/src/@types/endpoints/collection.ts +0 -23
  46. package/src/@types/endpoints/companies.ts +0 -33
  47. package/src/@types/endpoints/configuration.ts +0 -112
  48. package/src/@types/endpoints/credits.ts +0 -149
  49. package/src/@types/endpoints/discover.ts +0 -87
  50. package/src/@types/endpoints/find.ts +0 -28
  51. package/src/@types/endpoints/genre.ts +0 -3
  52. package/src/@types/endpoints/index.ts +0 -22
  53. package/src/@types/endpoints/keywords.ts +0 -24
  54. package/src/@types/endpoints/movies.ts +0 -169
  55. package/src/@types/endpoints/networks.ts +0 -15
  56. package/src/@types/endpoints/options.ts +0 -189
  57. package/src/@types/endpoints/people.ts +0 -151
  58. package/src/@types/endpoints/review.ts +0 -8
  59. package/src/@types/endpoints/search.ts +0 -39
  60. package/src/@types/endpoints/trending.ts +0 -20
  61. package/src/@types/endpoints/tvEpisode.ts +0 -72
  62. package/src/@types/endpoints/tvSeasons.ts +0 -37
  63. package/src/@types/endpoints/tvShows.ts +0 -284
  64. package/src/@types/endpoints/watchProviders.ts +0 -298
  65. package/src/@types/index.ts +0 -3
  66. package/src/@types/models/baseEndpoint.ts +0 -9
  67. package/src/@types/models/index.ts +0 -1
  68. package/src/@types/types.ts +0 -199
  69. package/src/endpoints/account.ts +0 -22
  70. package/src/endpoints/certification.ts +0 -30
  71. package/src/endpoints/changes.ts +0 -41
  72. package/src/endpoints/collections.ts +0 -57
  73. package/src/endpoints/companies.ts +0 -41
  74. package/src/endpoints/configuration.ts +0 -22
  75. package/src/endpoints/credits.ts +0 -23
  76. package/src/endpoints/discover.ts +0 -40
  77. package/src/endpoints/find.ts +0 -24
  78. package/src/endpoints/genre.ts +0 -32
  79. package/src/endpoints/index.ts +0 -18
  80. package/src/endpoints/keywords.ts +0 -35
  81. package/src/endpoints/movies.ts +0 -244
  82. package/src/endpoints/networks.ts +0 -41
  83. package/src/endpoints/people.ts +0 -147
  84. package/src/endpoints/review.ts +0 -23
  85. package/src/endpoints/search.ts +0 -93
  86. package/src/endpoints/trending.ts +0 -30
  87. package/src/endpoints/tvEpisodes.ts +0 -125
  88. package/src/endpoints/tvSeasons.ts +0 -138
  89. package/src/endpoints/tvShows.ts +0 -286
  90. package/src/index.ts +0 -66
  91. package/src/utils/api.ts +0 -31
  92. package/src/utils/getimagePath.ts +0 -16
  93. package/src/utils/index.ts +0 -2
  94. package/tsconfig.json +0 -108
@@ -1,284 +0,0 @@
1
- import { Genre, LanguageOption, ProductionCompany, ProductionCountry, SpokenLanguage } from '..';
2
-
3
- export interface CreatedBy {
4
- id: number;
5
- credit_id: string;
6
- name: string;
7
- gender: number;
8
- profile_path: string;
9
- }
10
-
11
- export interface NextEpisodeToAir {
12
- id: number;
13
- name: string;
14
- overview: string;
15
- vote_average: number;
16
- vote_count: number;
17
- air_date: string;
18
- episode_number: number;
19
- production_code: string;
20
- runtime: number;
21
- season_number: number;
22
- show_id: number;
23
- still_path: string;
24
- }
25
-
26
- export interface LastEpisodeToAir {
27
- air_date: string;
28
- episode_number: number;
29
- id: number;
30
- name: string;
31
- overview: string;
32
- production_code: string;
33
- season_number: number;
34
- still_path: string;
35
- vote_average: number;
36
- vote_count: number;
37
- }
38
-
39
- export interface Network {
40
- name: string;
41
- id: number;
42
- logo_path: string;
43
- origin_country: string;
44
- }
45
-
46
- export interface Season {
47
- air_date: string;
48
- episode_count: number;
49
- id: number;
50
- name: string;
51
- overview: string;
52
- poster_path: string;
53
- season_number: number;
54
- }
55
-
56
- export interface TvShowDetails {
57
- backdrop_path: string;
58
- created_by: CreatedBy[];
59
- episode_run_time: number[];
60
- first_air_date: string;
61
- genres: Genre[];
62
- homepage: string;
63
- id: number;
64
- in_production: boolean;
65
- languages: string[];
66
- last_air_date: string;
67
- last_episode_to_air: LastEpisodeToAir;
68
- name: string;
69
- next_episode_to_air?: NextEpisodeToAir;
70
- networks: Network[];
71
- number_of_episodes: number;
72
- number_of_seasons: number;
73
- origin_country: string[];
74
- original_language: string;
75
- original_name: string;
76
- overview: string;
77
- popularity: number;
78
- poster_path: string;
79
- production_companies: ProductionCompany[];
80
- production_countries: ProductionCountry[];
81
- seasons: Season[];
82
- spoken_languages: SpokenLanguage[];
83
- status: string;
84
- tagline: string;
85
- type: string;
86
- vote_average: number;
87
- vote_count: number;
88
- }
89
-
90
- export interface Network {
91
- id: number;
92
- logo_path: string;
93
- name: string;
94
- origin_country: string;
95
- }
96
-
97
- export interface EpisodeGroup {
98
- description: string;
99
- episode_count: number;
100
- group_count: number;
101
- id: string;
102
- name: string;
103
- network: Network;
104
- type: number;
105
- }
106
-
107
- export interface EpisodeGroups {
108
- results: EpisodeGroup[];
109
- id: number;
110
- }
111
-
112
- export interface ScreenedTheatricallyResult {
113
- id: number;
114
- episode_number: number;
115
- season_number: number;
116
- }
117
-
118
- export interface ScreenedTheatrically {
119
- id: number;
120
- results: ScreenedTheatricallyResult[];
121
- }
122
-
123
- export interface SimilarTvShow {
124
- backdrop_path: string;
125
- first_air_date: string;
126
- genre_ids: number[];
127
- id: number;
128
- original_language: string;
129
- original_name: string;
130
- overview: string;
131
- origin_country: string[];
132
- poster_path: string;
133
- popularity: number;
134
- name: string;
135
- vote_average: number;
136
- vote_count: number;
137
- }
138
-
139
- export interface Similartv {
140
- page: number;
141
- results: SimilarTvShow[];
142
- total_pages: number;
143
- total_results: number;
144
- }
145
-
146
- export interface Latesttv {
147
- backdrop_path?: string;
148
- created_by: CreatedBy[];
149
- episode_run_time: number[];
150
- first_air_date: string;
151
- genres: Genre[];
152
- homepage: string;
153
- id: number;
154
- in_production: boolean;
155
- languages: string[];
156
- last_air_date: string;
157
- name: string;
158
- networks: Network[];
159
- number_of_episodes: number;
160
- number_of_seasons: number;
161
- origin_country: string[];
162
- original_language: string;
163
- original_name: string;
164
- overview?: string;
165
- popularity: number;
166
- poster_path?: string;
167
- production_companies: ProductionCompany[];
168
- seasons: Season[];
169
- status: string;
170
- type: string;
171
- vote_average: number;
172
- vote_count: number;
173
- }
174
-
175
- export interface OnTheAirResult {
176
- poster_path: string;
177
- popularity: number;
178
- id: number;
179
- backdrop_path: string;
180
- vote_average: number;
181
- overview: string;
182
- first_air_date: string;
183
- origin_country: string[];
184
- genre_ids: number[];
185
- original_language: string;
186
- vote_count: number;
187
- name: string;
188
- original_name: string;
189
- }
190
-
191
- export interface OnTheAir {
192
- page: number;
193
- results: OnTheAirResult[];
194
- total_results: number;
195
- total_pages: number;
196
- }
197
-
198
- export interface AiringTodayResult {
199
- poster_path: string;
200
- popularity: number;
201
- id: number;
202
- backdrop_path: string;
203
- vote_average: number;
204
- overview: string;
205
- first_air_date: string;
206
- origin_country: string[];
207
- genre_ids: number[];
208
- original_language: string;
209
- vote_count: number;
210
- name: string;
211
- original_name: string;
212
- }
213
-
214
- export interface tvAiringToday {
215
- page: number;
216
- results: AiringTodayResult[];
217
- total_results: number;
218
- total_pages: number;
219
- }
220
-
221
- export interface PopularTvShowResult {
222
- poster_path: string;
223
- popularity: number;
224
- id: number;
225
- backdrop_path: string;
226
- vote_average: number;
227
- overview: string;
228
- first_air_date: string;
229
- origin_country: string[];
230
- genre_ids: number[];
231
- original_language: string;
232
- vote_count: number;
233
- name: string;
234
- original_name: string;
235
- }
236
-
237
- export interface Populartv {
238
- page: number;
239
- results: PopularTvShowResult[];
240
- total_results: number;
241
- total_pages: number;
242
- }
243
-
244
- export interface TopRatedTvShowResult {
245
- poster_path: string;
246
- popularity: number;
247
- id: number;
248
- backdrop_path: string;
249
- vote_average: number;
250
- overview: string;
251
- first_air_date: string;
252
- origin_country: string[];
253
- genre_ids: number[];
254
- original_language: string;
255
- vote_count: number;
256
- name: string;
257
- original_name: string;
258
- }
259
-
260
- export interface TopRatedtv {
261
- page: number;
262
- results: TopRatedTvShowResult[];
263
- total_results: number;
264
- total_pages: number;
265
- }
266
-
267
- export interface TvShowChangeValue {
268
- season_id: number;
269
- season_number: number;
270
- }
271
-
272
- export interface TvShowImageOptions extends LanguageOption {
273
- /**
274
- * a list of ISO-639-1 values to query
275
- */
276
- include_image_language?: string[];
277
- }
278
-
279
- export interface TvShowVideoOptions extends LanguageOption {
280
- /**
281
- * a list of ISO-639-1 values to query
282
- */
283
- include_video_language?: string[];
284
- }
@@ -1,298 +0,0 @@
1
- export interface Flatrate {
2
- display_priority: number;
3
- logo_path: string;
4
- provider_id: number;
5
- provider_name: string;
6
- }
7
-
8
- export interface Rent {
9
- display_priority: number;
10
- logo_path: string;
11
- provider_id: number;
12
- provider_name: string;
13
- }
14
-
15
- export interface Buy {
16
- display_priority: number;
17
- logo_path: string;
18
- provider_id: number;
19
- provider_name: string;
20
- }
21
-
22
- export interface WatchLocale {
23
- AR: {
24
- link: string;
25
- flatrate: Flatrate[];
26
- rent: Rent[];
27
- buy: Buy[];
28
- };
29
- AT: {
30
- link: string;
31
- rent: Rent[];
32
- buy: Buy[];
33
- };
34
- AU: {
35
- link: string;
36
- flatrate: Flatrate[];
37
- rent: Rent[];
38
- buy: Buy[];
39
- };
40
- BE: {
41
- link: string;
42
- buy: Buy[];
43
- flatrate: Flatrate[];
44
- rent: Rent[];
45
- };
46
- BR: {
47
- link: string;
48
- rent: Rent[];
49
- buy: Buy[];
50
- flatrate: Flatrate[];
51
- };
52
- CA: {
53
- link: string;
54
- rent: Rent[];
55
- flatrate: Flatrate[];
56
- buy: Buy[];
57
- };
58
- CH: {
59
- link: string;
60
- rent: Rent[];
61
- buy: Buy[];
62
- flatrate: Flatrate[];
63
- };
64
- CL: {
65
- link: string;
66
- flatrate: Flatrate[];
67
- buy: Buy[];
68
- rent: Rent[];
69
- };
70
- CO: {
71
- link: string;
72
- flatrate: Flatrate[];
73
- rent: Rent[];
74
- buy: Buy[];
75
- };
76
- CZ: {
77
- link: string;
78
- buy: Buy[];
79
- flatrate: Flatrate[];
80
- rent: Rent[];
81
- };
82
- DE: {
83
- link: string;
84
- rent: Rent[];
85
- buy: Buy[];
86
- };
87
- DK: {
88
- link: string;
89
- rent: Rent[];
90
- buy: Buy[];
91
- flatrate: Flatrate[];
92
- };
93
- EC: {
94
- link: string;
95
- flatrate: Flatrate[];
96
- buy: Buy[];
97
- rent: Rent[];
98
- };
99
- EE: {
100
- link: string;
101
- flatrate: Flatrate[];
102
- buy: Buy[];
103
- rent: Rent[];
104
- };
105
- ES: {
106
- link: string;
107
- rent: Rent[];
108
- flatrate: Flatrate[];
109
- buy: Buy[];
110
- };
111
- FI: {
112
- link: string;
113
- buy: Buy[];
114
- flatrate: Flatrate[];
115
- rent: Rent[];
116
- };
117
- FR: {
118
- link: string;
119
- flatrate: Flatrate[];
120
- buy: Buy[];
121
- rent: Rent[];
122
- };
123
- GB: {
124
- link: string;
125
- rent: Rent[];
126
- flatrate: Flatrate[];
127
- buy: Buy[];
128
- };
129
- GR: {
130
- link: string;
131
- flatrate: Flatrate[];
132
- rent: Rent[];
133
- buy: Buy[];
134
- };
135
- HU: {
136
- link: string;
137
- rent: Rent[];
138
- buy: Buy[];
139
- flatrate: Flatrate[];
140
- };
141
- ID: {
142
- link: string;
143
- flatrate: Flatrate[];
144
- rent: Rent[];
145
- buy: Buy[];
146
- };
147
- IE: {
148
- link: string;
149
- rent: Rent[];
150
- flatrate: Flatrate[];
151
- buy: Buy[];
152
- };
153
- IN: {
154
- link: string;
155
- buy: Buy[];
156
- flatrate: Flatrate[];
157
- rent: Rent[];
158
- };
159
- IT: {
160
- link: string;
161
- buy: Buy[];
162
- flatrate: Flatrate[];
163
- rent: Rent[];
164
- };
165
- JP: {
166
- link: string;
167
- rent: Rent[];
168
- flatrate: Flatrate[];
169
- buy: Buy[];
170
- };
171
- KR: {
172
- link: string;
173
- buy: Buy[];
174
- rent: Rent[];
175
- flatrate: Flatrate[];
176
- };
177
- LT: {
178
- link: string;
179
- buy: Buy[];
180
- flatrate: Flatrate[];
181
- };
182
- LV: {
183
- link: string;
184
- buy: Buy[];
185
- flatrate: Flatrate[];
186
- };
187
- MX: {
188
- link: string;
189
- flatrate: Flatrate[];
190
- rent: Rent[];
191
- buy: Buy[];
192
- };
193
- MY: {
194
- link: string;
195
- rent: Rent[];
196
- flatrate: Flatrate[];
197
- buy: Buy[];
198
- };
199
- NL: {
200
- link: string;
201
- flatrate: Flatrate[];
202
- buy: Buy[];
203
- rent: Rent[];
204
- };
205
- NO: {
206
- link: string;
207
- buy: Buy[];
208
- rent: Rent[];
209
- flatrate: Flatrate[];
210
- };
211
- NZ: {
212
- link: string;
213
- buy: Buy[];
214
- rent: Rent[];
215
- flatrate: Flatrate[];
216
- };
217
- PE: {
218
- link: string;
219
- flatrate: Flatrate[];
220
- rent: Rent[];
221
- buy: Buy[];
222
- };
223
- PH: {
224
- link: string;
225
- rent: Rent[];
226
- buy: Buy[];
227
- flatrate: Flatrate[];
228
- };
229
- PL: {
230
- link: string;
231
- rent: Rent[];
232
- flatrate: Flatrate[];
233
- buy: Buy[];
234
- };
235
- PT: {
236
- link: string;
237
- rent: Rent[];
238
- flatrate: Flatrate[];
239
- buy: Buy[];
240
- };
241
- RO: {
242
- link: string;
243
- flatrate: Flatrate[];
244
- };
245
- RU: {
246
- link: string;
247
- rent: Rent[];
248
- flatrate: Flatrate[];
249
- buy: Buy[];
250
- };
251
- SE: {
252
- link: string;
253
- rent: Rent[];
254
- flatrate: Flatrate[];
255
- buy: Buy[];
256
- };
257
- SG: {
258
- link: string;
259
- flatrate: Flatrate[];
260
- buy: Buy[];
261
- rent: Rent[];
262
- };
263
- TH: {
264
- link: string;
265
- flatrate: Flatrate[];
266
- rent: Rent[];
267
- buy: Buy[];
268
- };
269
- TR: {
270
- link: string;
271
- buy: Buy[];
272
- rent: Rent[];
273
- flatrate: Flatrate[];
274
- };
275
- US: {
276
- link: string;
277
- rent: Rent[];
278
- buy: Buy[];
279
- flatrate: Flatrate[];
280
- };
281
- VE: {
282
- link: string;
283
- flatrate: Flatrate[];
284
- rent: Rent[];
285
- buy: Buy[];
286
- };
287
- ZA: {
288
- link: string;
289
- rent: Rent[];
290
- buy: Buy[];
291
- flatrate: Flatrate[];
292
- };
293
- }
294
-
295
- export interface WatchProviders {
296
- id: number;
297
- results: WatchLocale;
298
- }
@@ -1,3 +0,0 @@
1
- export * from './endpoints';
2
- export * from './models';
3
- export * from './types';
@@ -1,9 +0,0 @@
1
- import { API } from '@/utils';
2
-
3
- export class BaseEndpoint {
4
- protected api: API;
5
-
6
- constructor(protected readonly access_token: string) {
7
- this.api = new API(access_token);
8
- }
9
- }
@@ -1 +0,0 @@
1
- export * from './baseEndpoint';