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