@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,491 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "@segha/tmdb/Movies",
4
+ "description": "Schemas for TMDB",
5
+ "$defs": {
6
+ "MovieSchema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "number",
12
+ "description": "Unique identifier for the movie"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "description": "Movie title"
17
+ },
18
+ "original_title": {
19
+ "type": "string",
20
+ "description": "Original movie title (in original language)"
21
+ },
22
+ "original_language": {
23
+ "type": "string",
24
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
25
+ },
26
+ "overview": {
27
+ "type": "string",
28
+ "description": "Movie overview/synopsis"
29
+ },
30
+ "poster_path": {
31
+ "type": "string",
32
+ "description": "Poster path (relative URL)"
33
+ },
34
+ "backdrop_path": {
35
+ "type": "string",
36
+ "description": "Backdrop path (relative URL)"
37
+ },
38
+ "release_date": {
39
+ "type": "string",
40
+ "description": "Release date (YYYY-MM-DD format)"
41
+ },
42
+ "vote_average": {
43
+ "type": "number",
44
+ "description": "Average vote rating (0-10)"
45
+ },
46
+ "vote_count": {
47
+ "type": "number",
48
+ "description": "Total number of votes"
49
+ },
50
+ "popularity": {
51
+ "type": "number",
52
+ "description": "Popularity score"
53
+ },
54
+ "adult": {
55
+ "type": "boolean",
56
+ "description": "Adult content flag"
57
+ },
58
+ "genre_ids": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "number"
62
+ },
63
+ "description": "Array of genre IDs"
64
+ },
65
+ "video": {
66
+ "type": "boolean",
67
+ "description": "Video flag"
68
+ }
69
+ },
70
+ "required": [
71
+ "id",
72
+ "title",
73
+ "original_title",
74
+ "original_language",
75
+ "overview",
76
+ "poster_path",
77
+ "backdrop_path",
78
+ "release_date",
79
+ "vote_average",
80
+ "vote_count",
81
+ "popularity",
82
+ "adult",
83
+ "genre_ids",
84
+ "video"
85
+ ]
86
+ },
87
+ "MovieDetailsParamsSchema": {
88
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
89
+ "type": "object",
90
+ "properties": {
91
+ "append_to_response": {
92
+ "description": "Append to response",
93
+ "type": "string"
94
+ },
95
+ "include_image_language": {
96
+ "description": "Include image language",
97
+ "type": "string"
98
+ },
99
+ "language": {
100
+ "description": "Language",
101
+ "type": "string"
102
+ }
103
+ }
104
+ },
105
+ "MovieDetailsSchema": {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "type": "object",
108
+ "properties": {
109
+ "id": {
110
+ "type": "number",
111
+ "description": "Unique identifier for the movie"
112
+ },
113
+ "title": {
114
+ "type": "string",
115
+ "description": "Movie title"
116
+ },
117
+ "original_title": {
118
+ "type": "string",
119
+ "description": "Original movie title (in original language)"
120
+ },
121
+ "original_language": {
122
+ "type": "string",
123
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
124
+ },
125
+ "overview": {
126
+ "type": "string",
127
+ "description": "Movie overview/synopsis"
128
+ },
129
+ "poster_path": {
130
+ "type": "string",
131
+ "description": "Poster path (relative URL)"
132
+ },
133
+ "backdrop_path": {
134
+ "type": "string",
135
+ "description": "Backdrop path (relative URL)"
136
+ },
137
+ "release_date": {
138
+ "type": "string",
139
+ "description": "Release date (YYYY-MM-DD format)"
140
+ },
141
+ "vote_average": {
142
+ "type": "number",
143
+ "description": "Average vote rating (0-10)"
144
+ },
145
+ "vote_count": {
146
+ "type": "number",
147
+ "description": "Total number of votes"
148
+ },
149
+ "popularity": {
150
+ "type": "number",
151
+ "description": "Popularity score"
152
+ },
153
+ "adult": {
154
+ "type": "boolean",
155
+ "description": "Adult content flag"
156
+ },
157
+ "video": {
158
+ "type": "boolean",
159
+ "description": "Video flag"
160
+ },
161
+ "genres": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "id": {
167
+ "type": "number",
168
+ "description": "Unique identifier for the genre"
169
+ },
170
+ "name": {
171
+ "type": "string",
172
+ "description": "Genre name"
173
+ }
174
+ },
175
+ "required": [
176
+ "id",
177
+ "name"
178
+ ]
179
+ },
180
+ "description": "Movie genres"
181
+ },
182
+ "runtime": {
183
+ "anyOf": [
184
+ {
185
+ "type": "number"
186
+ },
187
+ {
188
+ "type": "null"
189
+ }
190
+ ],
191
+ "description": "Movie runtime in minutes"
192
+ },
193
+ "budget": {
194
+ "type": "number",
195
+ "description": "Budget in USD"
196
+ },
197
+ "revenue": {
198
+ "type": "number",
199
+ "description": "Revenue in USD"
200
+ },
201
+ "homepage": {
202
+ "anyOf": [
203
+ {
204
+ "type": "string"
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ],
210
+ "description": "Homepage URL"
211
+ },
212
+ "imdb_id": {
213
+ "anyOf": [
214
+ {
215
+ "type": "string"
216
+ },
217
+ {
218
+ "type": "null"
219
+ }
220
+ ],
221
+ "description": "IMDB ID"
222
+ },
223
+ "production_companies": {
224
+ "type": "array",
225
+ "items": {
226
+ "type": "object",
227
+ "properties": {
228
+ "id": {
229
+ "type": "number",
230
+ "description": "Unique identifier for the production company"
231
+ },
232
+ "name": {
233
+ "type": "string",
234
+ "description": "Production company name"
235
+ },
236
+ "logo_path": {
237
+ "anyOf": [
238
+ {
239
+ "type": "string"
240
+ },
241
+ {
242
+ "type": "null"
243
+ }
244
+ ],
245
+ "description": "Logo path (relative URL)"
246
+ },
247
+ "origin_country": {
248
+ "type": "string",
249
+ "description": "Production company origin country"
250
+ }
251
+ },
252
+ "required": [
253
+ "id",
254
+ "name",
255
+ "logo_path",
256
+ "origin_country"
257
+ ]
258
+ },
259
+ "description": "Production companies"
260
+ },
261
+ "production_countries": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "object",
265
+ "properties": {
266
+ "iso_3166_1": {
267
+ "type": "string",
268
+ "description": "Production country ISO 3166-1 Alpha-2 code"
269
+ },
270
+ "name": {
271
+ "type": "string",
272
+ "description": "Production country name"
273
+ }
274
+ },
275
+ "required": [
276
+ "iso_3166_1",
277
+ "name"
278
+ ]
279
+ },
280
+ "description": "Production countries"
281
+ },
282
+ "spoken_languages": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "object",
286
+ "properties": {
287
+ "iso_639_1": {
288
+ "type": "string",
289
+ "description": "Spoken language ISO 639-1 code"
290
+ },
291
+ "name": {
292
+ "type": "string",
293
+ "description": "Spoken language name"
294
+ },
295
+ "english_name": {
296
+ "type": "string",
297
+ "description": "Spoken language English name"
298
+ }
299
+ },
300
+ "required": [
301
+ "iso_639_1",
302
+ "name",
303
+ "english_name"
304
+ ]
305
+ },
306
+ "description": "Spoken languages"
307
+ },
308
+ "status": {
309
+ "type": "string",
310
+ "description": "Current status (Released, Post Production, etc.)"
311
+ },
312
+ "tagline": {
313
+ "anyOf": [
314
+ {
315
+ "type": "string"
316
+ },
317
+ {
318
+ "type": "null"
319
+ }
320
+ ],
321
+ "description": "Tagline"
322
+ }
323
+ },
324
+ "required": [
325
+ "id",
326
+ "title",
327
+ "original_title",
328
+ "original_language",
329
+ "overview",
330
+ "poster_path",
331
+ "backdrop_path",
332
+ "release_date",
333
+ "vote_average",
334
+ "vote_count",
335
+ "popularity",
336
+ "adult",
337
+ "video",
338
+ "genres",
339
+ "runtime",
340
+ "budget",
341
+ "revenue",
342
+ "homepage",
343
+ "imdb_id",
344
+ "production_companies",
345
+ "production_countries",
346
+ "spoken_languages",
347
+ "status",
348
+ "tagline"
349
+ ]
350
+ },
351
+ "MoviesResponseSchema": {
352
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
353
+ "type": "object",
354
+ "properties": {
355
+ "page": {
356
+ "type": "number",
357
+ "description": "Page number"
358
+ },
359
+ "results": {
360
+ "type": "array",
361
+ "items": {
362
+ "type": "object",
363
+ "properties": {
364
+ "id": {
365
+ "type": "number",
366
+ "description": "Unique identifier for the movie"
367
+ },
368
+ "title": {
369
+ "type": "string",
370
+ "description": "Movie title"
371
+ },
372
+ "original_title": {
373
+ "type": "string",
374
+ "description": "Original movie title (in original language)"
375
+ },
376
+ "original_language": {
377
+ "type": "string",
378
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
379
+ },
380
+ "overview": {
381
+ "type": "string",
382
+ "description": "Movie overview/synopsis"
383
+ },
384
+ "poster_path": {
385
+ "type": "string",
386
+ "description": "Poster path (relative URL)"
387
+ },
388
+ "backdrop_path": {
389
+ "type": "string",
390
+ "description": "Backdrop path (relative URL)"
391
+ },
392
+ "release_date": {
393
+ "type": "string",
394
+ "description": "Release date (YYYY-MM-DD format)"
395
+ },
396
+ "vote_average": {
397
+ "type": "number",
398
+ "description": "Average vote rating (0-10)"
399
+ },
400
+ "vote_count": {
401
+ "type": "number",
402
+ "description": "Total number of votes"
403
+ },
404
+ "popularity": {
405
+ "type": "number",
406
+ "description": "Popularity score"
407
+ },
408
+ "adult": {
409
+ "type": "boolean",
410
+ "description": "Adult content flag"
411
+ },
412
+ "genre_ids": {
413
+ "type": "array",
414
+ "items": {
415
+ "type": "number"
416
+ },
417
+ "description": "Array of genre IDs"
418
+ },
419
+ "video": {
420
+ "type": "boolean",
421
+ "description": "Video flag"
422
+ }
423
+ },
424
+ "required": [
425
+ "id",
426
+ "title",
427
+ "original_title",
428
+ "original_language",
429
+ "overview",
430
+ "poster_path",
431
+ "backdrop_path",
432
+ "release_date",
433
+ "vote_average",
434
+ "vote_count",
435
+ "popularity",
436
+ "adult",
437
+ "genre_ids",
438
+ "video"
439
+ ]
440
+ },
441
+ "description": "Movies"
442
+ },
443
+ "total_pages": {
444
+ "type": "number",
445
+ "description": "Total pages"
446
+ },
447
+ "total_results": {
448
+ "type": "number",
449
+ "description": "Total results"
450
+ }
451
+ },
452
+ "required": [
453
+ "page",
454
+ "results",
455
+ "total_pages",
456
+ "total_results"
457
+ ]
458
+ },
459
+ "SearchMoviesParamsSchema": {
460
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
461
+ "type": "object",
462
+ "properties": {
463
+ "page": {
464
+ "type": "number",
465
+ "description": "Page number"
466
+ },
467
+ "language": {
468
+ "type": "string",
469
+ "description": "Language code"
470
+ },
471
+ "query": {
472
+ "type": "string",
473
+ "description": "Search query"
474
+ },
475
+ "include_adult": {
476
+ "description": "Include adult movies",
477
+ "type": "boolean"
478
+ },
479
+ "year": {
480
+ "description": "Year",
481
+ "type": "number"
482
+ }
483
+ },
484
+ "required": [
485
+ "page",
486
+ "language",
487
+ "query"
488
+ ]
489
+ }
490
+ }
491
+ }
@@ -0,0 +1,108 @@
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
+ "results": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {
14
+ "id": {
15
+ "type": "number",
16
+ "description": "Unique identifier for the movie"
17
+ },
18
+ "title": {
19
+ "type": "string",
20
+ "description": "Movie title"
21
+ },
22
+ "original_title": {
23
+ "type": "string",
24
+ "description": "Original movie title (in original language)"
25
+ },
26
+ "original_language": {
27
+ "type": "string",
28
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
29
+ },
30
+ "overview": {
31
+ "type": "string",
32
+ "description": "Movie overview/synopsis"
33
+ },
34
+ "poster_path": {
35
+ "type": "string",
36
+ "description": "Poster path (relative URL)"
37
+ },
38
+ "backdrop_path": {
39
+ "type": "string",
40
+ "description": "Backdrop path (relative URL)"
41
+ },
42
+ "release_date": {
43
+ "type": "string",
44
+ "description": "Release date (YYYY-MM-DD format)"
45
+ },
46
+ "vote_average": {
47
+ "type": "number",
48
+ "description": "Average vote rating (0-10)"
49
+ },
50
+ "vote_count": {
51
+ "type": "number",
52
+ "description": "Total number of votes"
53
+ },
54
+ "popularity": {
55
+ "type": "number",
56
+ "description": "Popularity score"
57
+ },
58
+ "adult": {
59
+ "type": "boolean",
60
+ "description": "Adult content flag"
61
+ },
62
+ "genre_ids": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "number"
66
+ },
67
+ "description": "Array of genre IDs"
68
+ },
69
+ "video": {
70
+ "type": "boolean",
71
+ "description": "Video flag"
72
+ }
73
+ },
74
+ "required": [
75
+ "id",
76
+ "title",
77
+ "original_title",
78
+ "original_language",
79
+ "overview",
80
+ "poster_path",
81
+ "backdrop_path",
82
+ "release_date",
83
+ "vote_average",
84
+ "vote_count",
85
+ "popularity",
86
+ "adult",
87
+ "genre_ids",
88
+ "video"
89
+ ]
90
+ },
91
+ "description": "Movies"
92
+ },
93
+ "total_pages": {
94
+ "type": "number",
95
+ "description": "Total pages"
96
+ },
97
+ "total_results": {
98
+ "type": "number",
99
+ "description": "Total results"
100
+ }
101
+ },
102
+ "required": [
103
+ "page",
104
+ "results",
105
+ "total_pages",
106
+ "total_results"
107
+ ]
108
+ }
@@ -0,0 +1,19 @@
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
+ },
14
+ "required": [
15
+ "page",
16
+ "language"
17
+ ],
18
+ "description": "Pagination parameters"
19
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "string",
4
+ "enum": [
5
+ "w92",
6
+ "w154",
7
+ "w185",
8
+ "w342",
9
+ "w500",
10
+ "w780",
11
+ "original"
12
+ ],
13
+ "description": "Poster size"
14
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "number",
7
+ "description": "Unique identifier for the production company"
8
+ },
9
+ "name": {
10
+ "type": "string",
11
+ "description": "Production company name"
12
+ },
13
+ "logo_path": {
14
+ "anyOf": [
15
+ {
16
+ "type": "string"
17
+ },
18
+ {
19
+ "type": "null"
20
+ }
21
+ ],
22
+ "description": "Logo path (relative URL)"
23
+ },
24
+ "origin_country": {
25
+ "type": "string",
26
+ "description": "Production company origin country"
27
+ }
28
+ },
29
+ "required": [
30
+ "id",
31
+ "name",
32
+ "logo_path",
33
+ "origin_country"
34
+ ]
35
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "iso_3166_1": {
6
+ "type": "string",
7
+ "description": "Production country ISO 3166-1 Alpha-2 code"
8
+ },
9
+ "name": {
10
+ "type": "string",
11
+ "description": "Production country name"
12
+ }
13
+ },
14
+ "required": [
15
+ "iso_3166_1",
16
+ "name"
17
+ ]
18
+ }