@segha/tmdb 0.0.1

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 (83) hide show
  1. package/README.md +401 -0
  2. package/index.ts +4 -0
  3. package/json-schemas/API/AiringTodayTVEndpoint.json +6 -0
  4. package/json-schemas/API/AllEndpoints.json +107 -0
  5. package/json-schemas/API/BaseUrl.json +6 -0
  6. package/json-schemas/API/ConfigurationSchema.json +13 -0
  7. package/json-schemas/API/EndpointsSchema.json +141 -0
  8. package/json-schemas/API/ImageBaseUrl.json +6 -0
  9. package/json-schemas/API/MethodsSchema.json +3791 -0
  10. package/json-schemas/API/MovieDetailsEndpoint.json +6 -0
  11. package/json-schemas/API/MovieEndpoints.json +45 -0
  12. package/json-schemas/API/MovieImagesEndpoint.json +6 -0
  13. package/json-schemas/API/MovieSimilarEndpoint.json +6 -0
  14. package/json-schemas/API/MovieVideosEndpoint.json +6 -0
  15. package/json-schemas/API/NowPlayingMoviesEndpoint.json +6 -0
  16. package/json-schemas/API/OnTheAirTVEndpoint.json +6 -0
  17. package/json-schemas/API/PopularMoviesEndpoint.json +6 -0
  18. package/json-schemas/API/PopularTVEndpoint.json +6 -0
  19. package/json-schemas/API/SearchEndpoints.json +15 -0
  20. package/json-schemas/API/SearchMoviesEndpoint.json +6 -0
  21. package/json-schemas/API/SearchTVEndpoint.json +6 -0
  22. package/json-schemas/API/SpecSchema.json +3817 -0
  23. package/json-schemas/API/TVDetailsEndpoint.json +6 -0
  24. package/json-schemas/API/TVEndpoints.json +45 -0
  25. package/json-schemas/API/TVImagesEndpoint.json +6 -0
  26. package/json-schemas/API/TVSimilarEndpoint.json +6 -0
  27. package/json-schemas/API/TVVideosEndpoint.json +6 -0
  28. package/json-schemas/API/TopRatedMoviesEndpoint.json +6 -0
  29. package/json-schemas/API/TopRatedTVEndpoint.json +6 -0
  30. package/json-schemas/API/UpcomingMoviesEndpoint.json +6 -0
  31. package/json-schemas/API/Version.json +6 -0
  32. package/json-schemas/API/index.json +8107 -0
  33. package/json-schemas/BackdropSizeSchema.json +11 -0
  34. package/json-schemas/DataTypes/BackdropSizeSchema.json +11 -0
  35. package/json-schemas/DataTypes/GenreSchema.json +18 -0
  36. package/json-schemas/DataTypes/ImageSchema.json +50 -0
  37. package/json-schemas/DataTypes/ImagesResponseSchema.json +175 -0
  38. package/json-schemas/DataTypes/LanguageSchema.json +23 -0
  39. package/json-schemas/DataTypes/PaginationParamsSchema.json +19 -0
  40. package/json-schemas/DataTypes/PosterSizeSchema.json +14 -0
  41. package/json-schemas/DataTypes/ProductionCompanySchema.json +35 -0
  42. package/json-schemas/DataTypes/ProductionCountrySchema.json +18 -0
  43. package/json-schemas/DataTypes/VideoSchema.json +58 -0
  44. package/json-schemas/DataTypes/VideosResponseSchema.json +75 -0
  45. package/json-schemas/DataTypes/index.json +503 -0
  46. package/json-schemas/GenreSchema.json +18 -0
  47. package/json-schemas/ImageSchema.json +50 -0
  48. package/json-schemas/ImagesResponseSchema.json +175 -0
  49. package/json-schemas/LanguageSchema.json +23 -0
  50. package/json-schemas/MovieDetailsParamsSchema.json +18 -0
  51. package/json-schemas/MovieDetailsSchema.json +246 -0
  52. package/json-schemas/MovieSchema.json +81 -0
  53. package/json-schemas/Movies/MovieDetailsParamsSchema.json +18 -0
  54. package/json-schemas/Movies/MovieDetailsSchema.json +246 -0
  55. package/json-schemas/Movies/MovieSchema.json +81 -0
  56. package/json-schemas/Movies/MoviesResponseSchema.json +108 -0
  57. package/json-schemas/Movies/SearchMoviesParamsSchema.json +31 -0
  58. package/json-schemas/Movies/index.json +491 -0
  59. package/json-schemas/MoviesResponseSchema.json +108 -0
  60. package/json-schemas/PaginationParamsSchema.json +19 -0
  61. package/json-schemas/PosterSizeSchema.json +14 -0
  62. package/json-schemas/ProductionCompanySchema.json +35 -0
  63. package/json-schemas/ProductionCountrySchema.json +18 -0
  64. package/json-schemas/SearchMoviesParamsSchema.json +31 -0
  65. package/json-schemas/SearchSeriesParamsSchema.json +31 -0
  66. package/json-schemas/SerieDetailsParamsSchema.json +18 -0
  67. package/json-schemas/SerieDetailsSchema.json +523 -0
  68. package/json-schemas/SerieSchema.json +107 -0
  69. package/json-schemas/SeriesResponseSchema.json +134 -0
  70. package/json-schemas/TVSeries/CreatorSchema.json +40 -0
  71. package/json-schemas/TVSeries/EpisodeSchema.json +89 -0
  72. package/json-schemas/TVSeries/NetworkSchema.json +35 -0
  73. package/json-schemas/TVSeries/SearchSeriesParamsSchema.json +31 -0
  74. package/json-schemas/TVSeries/SeasonSchema.json +57 -0
  75. package/json-schemas/TVSeries/SerieDetailsParamsSchema.json +18 -0
  76. package/json-schemas/TVSeries/SerieDetailsSchema.json +523 -0
  77. package/json-schemas/TVSeries/SerieSchema.json +107 -0
  78. package/json-schemas/TVSeries/SeriesResponseSchema.json +134 -0
  79. package/json-schemas/TVSeries/index.json +1041 -0
  80. package/json-schemas/VideoSchema.json +58 -0
  81. package/json-schemas/VideosResponseSchema.json +75 -0
  82. package/json-schemas/index.json +1800 -0
  83. package/package.json +50 -0
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "page": {
6
+ "type": "number",
7
+ "description": "Page number"
8
+ },
9
+ "language": {
10
+ "type": "string",
11
+ "description": "Language code"
12
+ },
13
+ "query": {
14
+ "type": "string",
15
+ "description": "Search query"
16
+ },
17
+ "include_adult": {
18
+ "description": "Include adult movies",
19
+ "type": "boolean"
20
+ },
21
+ "year": {
22
+ "description": "Year",
23
+ "type": "number"
24
+ }
25
+ },
26
+ "required": [
27
+ "page",
28
+ "language",
29
+ "query"
30
+ ]
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "page": {
6
+ "type": "number",
7
+ "description": "Page number"
8
+ },
9
+ "language": {
10
+ "type": "string",
11
+ "description": "Language code"
12
+ },
13
+ "query": {
14
+ "type": "string",
15
+ "description": "Search query"
16
+ },
17
+ "include_adult": {
18
+ "description": "Include adult movies",
19
+ "type": "boolean"
20
+ },
21
+ "year": {
22
+ "description": "Year",
23
+ "type": "number"
24
+ }
25
+ },
26
+ "required": [
27
+ "page",
28
+ "language",
29
+ "query"
30
+ ]
31
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "append_to_response": {
6
+ "description": "Append to response",
7
+ "type": "string"
8
+ },
9
+ "include_image_language": {
10
+ "description": "Include image language",
11
+ "type": "string"
12
+ },
13
+ "language": {
14
+ "description": "Language",
15
+ "type": "string"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,523 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "backdrop_path": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string"
9
+ },
10
+ {
11
+ "type": "null"
12
+ }
13
+ ],
14
+ "description": "Backdrop path (relative URL)"
15
+ },
16
+ "first_air_date": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string"
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ],
25
+ "description": "First air date (YYYY-MM-DD format)"
26
+ },
27
+ "id": {
28
+ "type": "number",
29
+ "description": "Unique identifier for the serie"
30
+ },
31
+ "name": {
32
+ "type": "string",
33
+ "description": "Serie name"
34
+ },
35
+ "origin_country": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ },
40
+ "description": "Array of origin countries"
41
+ },
42
+ "original_language": {
43
+ "type": "string",
44
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
45
+ },
46
+ "original_name": {
47
+ "type": "string",
48
+ "description": "Original serie name (in original language)"
49
+ },
50
+ "overview": {
51
+ "anyOf": [
52
+ {
53
+ "type": "string"
54
+ },
55
+ {
56
+ "type": "null"
57
+ }
58
+ ],
59
+ "description": "Serie overview/synopsis"
60
+ },
61
+ "popularity": {
62
+ "type": "number",
63
+ "description": "Popularity score"
64
+ },
65
+ "poster_path": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ],
74
+ "description": "Poster path (relative URL)"
75
+ },
76
+ "vote_average": {
77
+ "type": "number",
78
+ "description": "Average vote rating (0-10)"
79
+ },
80
+ "vote_count": {
81
+ "type": "number",
82
+ "description": "Total number of votes"
83
+ },
84
+ "adult": {
85
+ "type": "boolean",
86
+ "description": "Adult content flag"
87
+ },
88
+ "created_by": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "number",
95
+ "description": "Unique identifier for the creator"
96
+ },
97
+ "credit_id": {
98
+ "type": "string",
99
+ "description": "Credit ID"
100
+ },
101
+ "name": {
102
+ "type": "string",
103
+ "description": "Creator name"
104
+ },
105
+ "gender": {
106
+ "type": "number",
107
+ "description": "Creator gender"
108
+ },
109
+ "profile_path": {
110
+ "anyOf": [
111
+ {
112
+ "type": "string"
113
+ },
114
+ {
115
+ "type": "null"
116
+ }
117
+ ],
118
+ "description": "Creator profile path (relative URL)"
119
+ }
120
+ },
121
+ "required": [
122
+ "id",
123
+ "credit_id",
124
+ "name",
125
+ "gender",
126
+ "profile_path"
127
+ ]
128
+ },
129
+ "description": "Creators of the serie"
130
+ },
131
+ "episode_run_time": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "number"
135
+ },
136
+ "description": "Episode runtime in minutes"
137
+ },
138
+ "genres": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "id": {
144
+ "type": "number",
145
+ "description": "Unique identifier for the genre"
146
+ },
147
+ "name": {
148
+ "type": "string",
149
+ "description": "Genre name"
150
+ }
151
+ },
152
+ "required": [
153
+ "id",
154
+ "name"
155
+ ]
156
+ },
157
+ "description": "Genres of the serie"
158
+ },
159
+ "homepage": {
160
+ "anyOf": [
161
+ {
162
+ "type": "string"
163
+ },
164
+ {
165
+ "type": "null"
166
+ }
167
+ ],
168
+ "description": "Homepage URL"
169
+ },
170
+ "in_production": {
171
+ "type": "boolean",
172
+ "description": "In production flag"
173
+ },
174
+ "languages": {
175
+ "type": "array",
176
+ "items": {
177
+ "type": "string"
178
+ },
179
+ "description": "Languages of the serie"
180
+ },
181
+ "last_air_date": {
182
+ "type": "string",
183
+ "description": "Last air date (YYYY-MM-DD format)"
184
+ },
185
+ "last_episode_to_air": {
186
+ "type": "object",
187
+ "properties": {
188
+ "id": {
189
+ "type": "number",
190
+ "description": "Unique identifier for the episode"
191
+ },
192
+ "name": {
193
+ "type": "string",
194
+ "description": "Episode name"
195
+ },
196
+ "overview": {
197
+ "anyOf": [
198
+ {
199
+ "type": "string"
200
+ },
201
+ {
202
+ "type": "null"
203
+ }
204
+ ],
205
+ "description": "Episode overview/synopsis"
206
+ },
207
+ "vote_average": {
208
+ "type": "number",
209
+ "description": "Average vote rating (0-10)"
210
+ },
211
+ "vote_count": {
212
+ "type": "number",
213
+ "description": "Total number of votes"
214
+ },
215
+ "air_date": {
216
+ "type": "string",
217
+ "description": "Air date (YYYY-MM-DD format)"
218
+ },
219
+ "episode_number": {
220
+ "type": "number",
221
+ "description": "Episode number"
222
+ },
223
+ "production_code": {
224
+ "type": "string",
225
+ "description": "Production code"
226
+ },
227
+ "runtime": {
228
+ "anyOf": [
229
+ {
230
+ "type": "number"
231
+ },
232
+ {
233
+ "type": "null"
234
+ }
235
+ ],
236
+ "description": "Runtime in minutes"
237
+ },
238
+ "season_number": {
239
+ "type": "number",
240
+ "description": "Season number"
241
+ },
242
+ "show_id": {
243
+ "type": "number",
244
+ "description": "Show ID"
245
+ },
246
+ "still_path": {
247
+ "anyOf": [
248
+ {
249
+ "type": "string"
250
+ },
251
+ {
252
+ "type": "null"
253
+ }
254
+ ],
255
+ "description": "Still path (relative URL)"
256
+ }
257
+ },
258
+ "required": [
259
+ "id",
260
+ "name",
261
+ "overview",
262
+ "vote_average",
263
+ "vote_count",
264
+ "air_date",
265
+ "episode_number",
266
+ "production_code",
267
+ "runtime",
268
+ "season_number",
269
+ "show_id",
270
+ "still_path"
271
+ ],
272
+ "description": "Last episode to air"
273
+ },
274
+ "next_episode_to_air": {
275
+ "type": "string",
276
+ "description": "Next episode to air"
277
+ },
278
+ "networks": {
279
+ "type": "array",
280
+ "items": {
281
+ "type": "object",
282
+ "properties": {
283
+ "id": {
284
+ "type": "number",
285
+ "description": "Unique identifier for the network"
286
+ },
287
+ "name": {
288
+ "type": "string",
289
+ "description": "Network name"
290
+ },
291
+ "logo_path": {
292
+ "anyOf": [
293
+ {
294
+ "type": "string"
295
+ },
296
+ {
297
+ "type": "null"
298
+ }
299
+ ],
300
+ "description": "Logo path (relative URL)"
301
+ },
302
+ "origin_country": {
303
+ "type": "string",
304
+ "description": "Network origin country"
305
+ }
306
+ },
307
+ "required": [
308
+ "id",
309
+ "name",
310
+ "logo_path",
311
+ "origin_country"
312
+ ]
313
+ },
314
+ "description": "Networks of the serie"
315
+ },
316
+ "number_of_episodes": {
317
+ "type": "number",
318
+ "description": "Number of episodes"
319
+ },
320
+ "number_of_seasons": {
321
+ "type": "number",
322
+ "description": "Number of seasons"
323
+ },
324
+ "production_companies": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "object",
328
+ "properties": {
329
+ "id": {
330
+ "type": "number",
331
+ "description": "Unique identifier for the production company"
332
+ },
333
+ "name": {
334
+ "type": "string",
335
+ "description": "Production company name"
336
+ },
337
+ "logo_path": {
338
+ "anyOf": [
339
+ {
340
+ "type": "string"
341
+ },
342
+ {
343
+ "type": "null"
344
+ }
345
+ ],
346
+ "description": "Logo path (relative URL)"
347
+ },
348
+ "origin_country": {
349
+ "type": "string",
350
+ "description": "Production company origin country"
351
+ }
352
+ },
353
+ "required": [
354
+ "id",
355
+ "name",
356
+ "logo_path",
357
+ "origin_country"
358
+ ]
359
+ },
360
+ "description": "Production companies of the serie"
361
+ },
362
+ "production_countries": {
363
+ "type": "array",
364
+ "items": {
365
+ "type": "object",
366
+ "properties": {
367
+ "iso_3166_1": {
368
+ "type": "string",
369
+ "description": "Production country ISO 3166-1 Alpha-2 code"
370
+ },
371
+ "name": {
372
+ "type": "string",
373
+ "description": "Production country name"
374
+ }
375
+ },
376
+ "required": [
377
+ "iso_3166_1",
378
+ "name"
379
+ ]
380
+ },
381
+ "description": "Production countries of the serie"
382
+ },
383
+ "seasons": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "object",
387
+ "properties": {
388
+ "air_date": {
389
+ "type": "string",
390
+ "description": "Air date (YYYY-MM-DD format)"
391
+ },
392
+ "episode_count": {
393
+ "type": "number",
394
+ "description": "Episode count"
395
+ },
396
+ "id": {
397
+ "type": "number",
398
+ "description": "Unique identifier for the season"
399
+ },
400
+ "name": {
401
+ "type": "string",
402
+ "description": "Season name"
403
+ },
404
+ "overview": {
405
+ "anyOf": [
406
+ {
407
+ "type": "string"
408
+ },
409
+ {
410
+ "type": "null"
411
+ }
412
+ ],
413
+ "description": "Season overview/synopsis"
414
+ },
415
+ "poster_path": {
416
+ "anyOf": [
417
+ {
418
+ "type": "string"
419
+ },
420
+ {
421
+ "type": "null"
422
+ }
423
+ ],
424
+ "description": "Poster path (relative URL)"
425
+ },
426
+ "season_number": {
427
+ "type": "number",
428
+ "description": "Season number"
429
+ }
430
+ },
431
+ "required": [
432
+ "air_date",
433
+ "episode_count",
434
+ "id",
435
+ "name",
436
+ "overview",
437
+ "poster_path",
438
+ "season_number"
439
+ ]
440
+ },
441
+ "description": "Seasons of the serie"
442
+ },
443
+ "spoken_languages": {
444
+ "type": "array",
445
+ "items": {
446
+ "type": "object",
447
+ "properties": {
448
+ "iso_639_1": {
449
+ "type": "string",
450
+ "description": "Spoken language ISO 639-1 code"
451
+ },
452
+ "name": {
453
+ "type": "string",
454
+ "description": "Spoken language name"
455
+ },
456
+ "english_name": {
457
+ "type": "string",
458
+ "description": "Spoken language English name"
459
+ }
460
+ },
461
+ "required": [
462
+ "iso_639_1",
463
+ "name",
464
+ "english_name"
465
+ ]
466
+ },
467
+ "description": "Spoken languages of the serie"
468
+ },
469
+ "status": {
470
+ "type": "string",
471
+ "description": "Status of the serie"
472
+ },
473
+ "tagline": {
474
+ "anyOf": [
475
+ {
476
+ "type": "string"
477
+ },
478
+ {
479
+ "type": "null"
480
+ }
481
+ ],
482
+ "description": "Tagline of the serie"
483
+ },
484
+ "type": {
485
+ "type": "string",
486
+ "description": "Type of the serie"
487
+ }
488
+ },
489
+ "required": [
490
+ "backdrop_path",
491
+ "first_air_date",
492
+ "id",
493
+ "name",
494
+ "origin_country",
495
+ "original_language",
496
+ "original_name",
497
+ "overview",
498
+ "popularity",
499
+ "poster_path",
500
+ "vote_average",
501
+ "vote_count",
502
+ "adult",
503
+ "created_by",
504
+ "episode_run_time",
505
+ "genres",
506
+ "homepage",
507
+ "in_production",
508
+ "languages",
509
+ "last_air_date",
510
+ "last_episode_to_air",
511
+ "next_episode_to_air",
512
+ "networks",
513
+ "number_of_episodes",
514
+ "number_of_seasons",
515
+ "production_companies",
516
+ "production_countries",
517
+ "seasons",
518
+ "spoken_languages",
519
+ "status",
520
+ "tagline",
521
+ "type"
522
+ ]
523
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "backdrop_path": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string"
9
+ },
10
+ {
11
+ "type": "null"
12
+ }
13
+ ],
14
+ "description": "Backdrop path (relative URL)"
15
+ },
16
+ "first_air_date": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string"
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ],
25
+ "description": "First air date (YYYY-MM-DD format)"
26
+ },
27
+ "genre_ids": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "number"
31
+ },
32
+ "description": "Array of genre IDs"
33
+ },
34
+ "id": {
35
+ "type": "number",
36
+ "description": "Unique identifier for the serie"
37
+ },
38
+ "name": {
39
+ "type": "string",
40
+ "description": "Serie name"
41
+ },
42
+ "origin_country": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ },
47
+ "description": "Array of origin countries"
48
+ },
49
+ "original_language": {
50
+ "type": "string",
51
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
52
+ },
53
+ "original_name": {
54
+ "type": "string",
55
+ "description": "Original serie name (in original language)"
56
+ },
57
+ "overview": {
58
+ "anyOf": [
59
+ {
60
+ "type": "string"
61
+ },
62
+ {
63
+ "type": "null"
64
+ }
65
+ ],
66
+ "description": "Serie overview/synopsis"
67
+ },
68
+ "popularity": {
69
+ "type": "number",
70
+ "description": "Popularity score"
71
+ },
72
+ "poster_path": {
73
+ "anyOf": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "type": "null"
79
+ }
80
+ ],
81
+ "description": "Poster path (relative URL)"
82
+ },
83
+ "vote_average": {
84
+ "type": "number",
85
+ "description": "Average vote rating (0-10)"
86
+ },
87
+ "vote_count": {
88
+ "type": "number",
89
+ "description": "Total number of votes"
90
+ }
91
+ },
92
+ "required": [
93
+ "backdrop_path",
94
+ "first_air_date",
95
+ "genre_ids",
96
+ "id",
97
+ "name",
98
+ "origin_country",
99
+ "original_language",
100
+ "original_name",
101
+ "overview",
102
+ "popularity",
103
+ "poster_path",
104
+ "vote_average",
105
+ "vote_count"
106
+ ]
107
+ }