@segha/tmdb 0.0.5 → 1.0.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 (33) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/DataTypes/Video.ts +10 -2
  3. package/Enums/MonetizationType.ts +15 -0
  4. package/Enums/ReleaseType.ts +17 -0
  5. package/Enums/WatchProvider.ts +27 -0
  6. package/Enums/index.ts +4 -0
  7. package/Movies/MovieDetails.ts +5 -1
  8. package/README.md +58 -12
  9. package/TVSeries/SerieDetails.ts +5 -1
  10. package/index.ts +1 -0
  11. package/json-schemas/API/MethodsSchema.json +780 -4
  12. package/json-schemas/API/SpecSchema.json +780 -4
  13. package/json-schemas/API/index.json +1710 -158
  14. package/json-schemas/DataTypes/VideoSchema.json +12 -2
  15. package/json-schemas/DataTypes/VideosResponseSchema.json +12 -2
  16. package/json-schemas/DataTypes/index.json +24 -4
  17. package/json-schemas/Enums/MonetizationType.json +11 -0
  18. package/json-schemas/Enums/ReleaseType.json +12 -0
  19. package/json-schemas/Enums/WatchProvider.json +17 -0
  20. package/json-schemas/Enums/index.json +47 -0
  21. package/json-schemas/MonetizationType.json +11 -0
  22. package/json-schemas/MovieDetailsSchema.json +365 -0
  23. package/json-schemas/Movies/MovieDetailsSchema.json +365 -0
  24. package/json-schemas/Movies/index.json +365 -0
  25. package/json-schemas/ReleaseType.json +12 -0
  26. package/json-schemas/SerieDetailsSchema.json +391 -0
  27. package/json-schemas/TVSeries/SerieDetailsSchema.json +391 -0
  28. package/json-schemas/TVSeries/index.json +391 -0
  29. package/json-schemas/VideoSchema.json +12 -2
  30. package/json-schemas/VideosResponseSchema.json +12 -2
  31. package/json-schemas/WatchProvider.json +17 -0
  32. package/json-schemas/index.json +820 -4
  33. package/package.json +1 -1
@@ -1296,6 +1296,371 @@
1296
1296
  }
1297
1297
  ],
1298
1298
  "description": "Tagline"
1299
+ },
1300
+ "images": {
1301
+ "type": "object",
1302
+ "properties": {
1303
+ "id": {
1304
+ "type": "number",
1305
+ "description": "Image ID"
1306
+ },
1307
+ "backdrops": {
1308
+ "type": "array",
1309
+ "items": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "aspect_ratio": {
1313
+ "type": "number",
1314
+ "description": "Aspect ratio"
1315
+ },
1316
+ "height": {
1317
+ "type": "number",
1318
+ "description": "Height"
1319
+ },
1320
+ "iso_639_1": {
1321
+ "anyOf": [
1322
+ {
1323
+ "type": "string"
1324
+ },
1325
+ {
1326
+ "type": "null"
1327
+ }
1328
+ ],
1329
+ "description": "Spoken language ISO 639-1 code"
1330
+ },
1331
+ "file_path": {
1332
+ "type": "string",
1333
+ "description": "File path"
1334
+ },
1335
+ "vote_average": {
1336
+ "type": "number",
1337
+ "description": "Vote average"
1338
+ },
1339
+ "vote_count": {
1340
+ "type": "number",
1341
+ "description": "Vote count"
1342
+ },
1343
+ "width": {
1344
+ "type": "number",
1345
+ "description": "Width"
1346
+ }
1347
+ },
1348
+ "required": [
1349
+ "aspect_ratio",
1350
+ "height",
1351
+ "iso_639_1",
1352
+ "file_path",
1353
+ "vote_average",
1354
+ "vote_count",
1355
+ "width"
1356
+ ]
1357
+ },
1358
+ "description": "Backdrops"
1359
+ },
1360
+ "logos": {
1361
+ "type": "array",
1362
+ "items": {
1363
+ "type": "object",
1364
+ "properties": {
1365
+ "aspect_ratio": {
1366
+ "type": "number",
1367
+ "description": "Aspect ratio"
1368
+ },
1369
+ "height": {
1370
+ "type": "number",
1371
+ "description": "Height"
1372
+ },
1373
+ "iso_639_1": {
1374
+ "anyOf": [
1375
+ {
1376
+ "type": "string"
1377
+ },
1378
+ {
1379
+ "type": "null"
1380
+ }
1381
+ ],
1382
+ "description": "Spoken language ISO 639-1 code"
1383
+ },
1384
+ "file_path": {
1385
+ "type": "string",
1386
+ "description": "File path"
1387
+ },
1388
+ "vote_average": {
1389
+ "type": "number",
1390
+ "description": "Vote average"
1391
+ },
1392
+ "vote_count": {
1393
+ "type": "number",
1394
+ "description": "Vote count"
1395
+ },
1396
+ "width": {
1397
+ "type": "number",
1398
+ "description": "Width"
1399
+ }
1400
+ },
1401
+ "required": [
1402
+ "aspect_ratio",
1403
+ "height",
1404
+ "iso_639_1",
1405
+ "file_path",
1406
+ "vote_average",
1407
+ "vote_count",
1408
+ "width"
1409
+ ]
1410
+ },
1411
+ "description": "Logos"
1412
+ },
1413
+ "posters": {
1414
+ "type": "array",
1415
+ "items": {
1416
+ "type": "object",
1417
+ "properties": {
1418
+ "aspect_ratio": {
1419
+ "type": "number",
1420
+ "description": "Aspect ratio"
1421
+ },
1422
+ "height": {
1423
+ "type": "number",
1424
+ "description": "Height"
1425
+ },
1426
+ "iso_639_1": {
1427
+ "anyOf": [
1428
+ {
1429
+ "type": "string"
1430
+ },
1431
+ {
1432
+ "type": "null"
1433
+ }
1434
+ ],
1435
+ "description": "Spoken language ISO 639-1 code"
1436
+ },
1437
+ "file_path": {
1438
+ "type": "string",
1439
+ "description": "File path"
1440
+ },
1441
+ "vote_average": {
1442
+ "type": "number",
1443
+ "description": "Vote average"
1444
+ },
1445
+ "vote_count": {
1446
+ "type": "number",
1447
+ "description": "Vote count"
1448
+ },
1449
+ "width": {
1450
+ "type": "number",
1451
+ "description": "Width"
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "aspect_ratio",
1456
+ "height",
1457
+ "iso_639_1",
1458
+ "file_path",
1459
+ "vote_average",
1460
+ "vote_count",
1461
+ "width"
1462
+ ]
1463
+ },
1464
+ "description": "Posters"
1465
+ }
1466
+ },
1467
+ "required": [
1468
+ "id",
1469
+ "backdrops",
1470
+ "logos",
1471
+ "posters"
1472
+ ]
1473
+ },
1474
+ "videos": {
1475
+ "type": "object",
1476
+ "properties": {
1477
+ "id": {
1478
+ "type": "number",
1479
+ "description": "Video ID"
1480
+ },
1481
+ "results": {
1482
+ "type": "array",
1483
+ "items": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "iso_639_1": {
1487
+ "type": "string",
1488
+ "description": "Spoken language ISO 639-1 code"
1489
+ },
1490
+ "iso_3166_1": {
1491
+ "type": "string",
1492
+ "description": "Production country ISO 3166-1 Alpha-2 code"
1493
+ },
1494
+ "name": {
1495
+ "type": "string",
1496
+ "description": "Video name"
1497
+ },
1498
+ "key": {
1499
+ "type": "string",
1500
+ "description": "Video key"
1501
+ },
1502
+ "site": {
1503
+ "anyOf": [
1504
+ {
1505
+ "type": "string",
1506
+ "const": "YouTube"
1507
+ }
1508
+ ],
1509
+ "description": "Video site"
1510
+ },
1511
+ "size": {
1512
+ "type": "number",
1513
+ "description": "Video size"
1514
+ },
1515
+ "type": {
1516
+ "anyOf": [
1517
+ {
1518
+ "type": "string",
1519
+ "const": "Teaser"
1520
+ }
1521
+ ],
1522
+ "description": "Video type"
1523
+ },
1524
+ "official": {
1525
+ "type": "boolean",
1526
+ "description": "Video official"
1527
+ },
1528
+ "published_at": {
1529
+ "type": "string",
1530
+ "description": "Video published at"
1531
+ },
1532
+ "id": {
1533
+ "type": "string",
1534
+ "description": "Video ID"
1535
+ }
1536
+ },
1537
+ "required": [
1538
+ "iso_639_1",
1539
+ "iso_3166_1",
1540
+ "name",
1541
+ "key",
1542
+ "site",
1543
+ "size",
1544
+ "type",
1545
+ "official",
1546
+ "published_at",
1547
+ "id"
1548
+ ]
1549
+ },
1550
+ "description": "Videos"
1551
+ }
1552
+ },
1553
+ "required": [
1554
+ "id",
1555
+ "results"
1556
+ ]
1557
+ },
1558
+ "similar": {
1559
+ "type": "object",
1560
+ "properties": {
1561
+ "page": {
1562
+ "type": "number",
1563
+ "description": "Page number"
1564
+ },
1565
+ "results": {
1566
+ "type": "array",
1567
+ "items": {
1568
+ "type": "object",
1569
+ "properties": {
1570
+ "id": {
1571
+ "type": "number",
1572
+ "description": "Unique identifier for the movie"
1573
+ },
1574
+ "title": {
1575
+ "type": "string",
1576
+ "description": "Movie title"
1577
+ },
1578
+ "original_title": {
1579
+ "type": "string",
1580
+ "description": "Original movie title (in original language)"
1581
+ },
1582
+ "original_language": {
1583
+ "type": "string",
1584
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
1585
+ },
1586
+ "overview": {
1587
+ "type": "string",
1588
+ "description": "Movie overview/synopsis"
1589
+ },
1590
+ "poster_path": {
1591
+ "type": "string",
1592
+ "description": "Poster path (relative URL)"
1593
+ },
1594
+ "backdrop_path": {
1595
+ "type": "string",
1596
+ "description": "Backdrop path (relative URL)"
1597
+ },
1598
+ "release_date": {
1599
+ "type": "string",
1600
+ "description": "Release date (YYYY-MM-DD format)"
1601
+ },
1602
+ "vote_average": {
1603
+ "type": "number",
1604
+ "description": "Average vote rating (0-10)"
1605
+ },
1606
+ "vote_count": {
1607
+ "type": "number",
1608
+ "description": "Total number of votes"
1609
+ },
1610
+ "popularity": {
1611
+ "type": "number",
1612
+ "description": "Popularity score"
1613
+ },
1614
+ "adult": {
1615
+ "type": "boolean",
1616
+ "description": "Adult content flag"
1617
+ },
1618
+ "genre_ids": {
1619
+ "type": "array",
1620
+ "items": {
1621
+ "type": "number"
1622
+ },
1623
+ "description": "Array of genre IDs"
1624
+ },
1625
+ "video": {
1626
+ "type": "boolean",
1627
+ "description": "Video flag"
1628
+ }
1629
+ },
1630
+ "required": [
1631
+ "id",
1632
+ "title",
1633
+ "original_title",
1634
+ "original_language",
1635
+ "overview",
1636
+ "poster_path",
1637
+ "backdrop_path",
1638
+ "release_date",
1639
+ "vote_average",
1640
+ "vote_count",
1641
+ "popularity",
1642
+ "adult",
1643
+ "genre_ids",
1644
+ "video"
1645
+ ]
1646
+ },
1647
+ "description": "Movies"
1648
+ },
1649
+ "total_pages": {
1650
+ "type": "number",
1651
+ "description": "Total pages"
1652
+ },
1653
+ "total_results": {
1654
+ "type": "number",
1655
+ "description": "Total results"
1656
+ }
1657
+ },
1658
+ "required": [
1659
+ "page",
1660
+ "results",
1661
+ "total_pages",
1662
+ "total_results"
1663
+ ]
1299
1664
  }
1300
1665
  },
1301
1666
  "required": [
@@ -1630,7 +1995,12 @@
1630
1995
  "description": "Video key"
1631
1996
  },
1632
1997
  "site": {
1633
- "type": "string",
1998
+ "anyOf": [
1999
+ {
2000
+ "type": "string",
2001
+ "const": "YouTube"
2002
+ }
2003
+ ],
1634
2004
  "description": "Video site"
1635
2005
  },
1636
2006
  "size": {
@@ -1638,7 +2008,12 @@
1638
2008
  "description": "Video size"
1639
2009
  },
1640
2010
  "type": {
1641
- "type": "string",
2011
+ "anyOf": [
2012
+ {
2013
+ "type": "string",
2014
+ "const": "Teaser"
2015
+ }
2016
+ ],
1642
2017
  "description": "Video type"
1643
2018
  },
1644
2019
  "official": {
@@ -3146,6 +3521,397 @@
3146
3521
  "type": {
3147
3522
  "type": "string",
3148
3523
  "description": "Type of the serie"
3524
+ },
3525
+ "images": {
3526
+ "type": "object",
3527
+ "properties": {
3528
+ "id": {
3529
+ "type": "number",
3530
+ "description": "Image ID"
3531
+ },
3532
+ "backdrops": {
3533
+ "type": "array",
3534
+ "items": {
3535
+ "type": "object",
3536
+ "properties": {
3537
+ "aspect_ratio": {
3538
+ "type": "number",
3539
+ "description": "Aspect ratio"
3540
+ },
3541
+ "height": {
3542
+ "type": "number",
3543
+ "description": "Height"
3544
+ },
3545
+ "iso_639_1": {
3546
+ "anyOf": [
3547
+ {
3548
+ "type": "string"
3549
+ },
3550
+ {
3551
+ "type": "null"
3552
+ }
3553
+ ],
3554
+ "description": "Spoken language ISO 639-1 code"
3555
+ },
3556
+ "file_path": {
3557
+ "type": "string",
3558
+ "description": "File path"
3559
+ },
3560
+ "vote_average": {
3561
+ "type": "number",
3562
+ "description": "Vote average"
3563
+ },
3564
+ "vote_count": {
3565
+ "type": "number",
3566
+ "description": "Vote count"
3567
+ },
3568
+ "width": {
3569
+ "type": "number",
3570
+ "description": "Width"
3571
+ }
3572
+ },
3573
+ "required": [
3574
+ "aspect_ratio",
3575
+ "height",
3576
+ "iso_639_1",
3577
+ "file_path",
3578
+ "vote_average",
3579
+ "vote_count",
3580
+ "width"
3581
+ ]
3582
+ },
3583
+ "description": "Backdrops"
3584
+ },
3585
+ "logos": {
3586
+ "type": "array",
3587
+ "items": {
3588
+ "type": "object",
3589
+ "properties": {
3590
+ "aspect_ratio": {
3591
+ "type": "number",
3592
+ "description": "Aspect ratio"
3593
+ },
3594
+ "height": {
3595
+ "type": "number",
3596
+ "description": "Height"
3597
+ },
3598
+ "iso_639_1": {
3599
+ "anyOf": [
3600
+ {
3601
+ "type": "string"
3602
+ },
3603
+ {
3604
+ "type": "null"
3605
+ }
3606
+ ],
3607
+ "description": "Spoken language ISO 639-1 code"
3608
+ },
3609
+ "file_path": {
3610
+ "type": "string",
3611
+ "description": "File path"
3612
+ },
3613
+ "vote_average": {
3614
+ "type": "number",
3615
+ "description": "Vote average"
3616
+ },
3617
+ "vote_count": {
3618
+ "type": "number",
3619
+ "description": "Vote count"
3620
+ },
3621
+ "width": {
3622
+ "type": "number",
3623
+ "description": "Width"
3624
+ }
3625
+ },
3626
+ "required": [
3627
+ "aspect_ratio",
3628
+ "height",
3629
+ "iso_639_1",
3630
+ "file_path",
3631
+ "vote_average",
3632
+ "vote_count",
3633
+ "width"
3634
+ ]
3635
+ },
3636
+ "description": "Logos"
3637
+ },
3638
+ "posters": {
3639
+ "type": "array",
3640
+ "items": {
3641
+ "type": "object",
3642
+ "properties": {
3643
+ "aspect_ratio": {
3644
+ "type": "number",
3645
+ "description": "Aspect ratio"
3646
+ },
3647
+ "height": {
3648
+ "type": "number",
3649
+ "description": "Height"
3650
+ },
3651
+ "iso_639_1": {
3652
+ "anyOf": [
3653
+ {
3654
+ "type": "string"
3655
+ },
3656
+ {
3657
+ "type": "null"
3658
+ }
3659
+ ],
3660
+ "description": "Spoken language ISO 639-1 code"
3661
+ },
3662
+ "file_path": {
3663
+ "type": "string",
3664
+ "description": "File path"
3665
+ },
3666
+ "vote_average": {
3667
+ "type": "number",
3668
+ "description": "Vote average"
3669
+ },
3670
+ "vote_count": {
3671
+ "type": "number",
3672
+ "description": "Vote count"
3673
+ },
3674
+ "width": {
3675
+ "type": "number",
3676
+ "description": "Width"
3677
+ }
3678
+ },
3679
+ "required": [
3680
+ "aspect_ratio",
3681
+ "height",
3682
+ "iso_639_1",
3683
+ "file_path",
3684
+ "vote_average",
3685
+ "vote_count",
3686
+ "width"
3687
+ ]
3688
+ },
3689
+ "description": "Posters"
3690
+ }
3691
+ },
3692
+ "required": [
3693
+ "id",
3694
+ "backdrops",
3695
+ "logos",
3696
+ "posters"
3697
+ ]
3698
+ },
3699
+ "videos": {
3700
+ "type": "object",
3701
+ "properties": {
3702
+ "id": {
3703
+ "type": "number",
3704
+ "description": "Video ID"
3705
+ },
3706
+ "results": {
3707
+ "type": "array",
3708
+ "items": {
3709
+ "type": "object",
3710
+ "properties": {
3711
+ "iso_639_1": {
3712
+ "type": "string",
3713
+ "description": "Spoken language ISO 639-1 code"
3714
+ },
3715
+ "iso_3166_1": {
3716
+ "type": "string",
3717
+ "description": "Production country ISO 3166-1 Alpha-2 code"
3718
+ },
3719
+ "name": {
3720
+ "type": "string",
3721
+ "description": "Video name"
3722
+ },
3723
+ "key": {
3724
+ "type": "string",
3725
+ "description": "Video key"
3726
+ },
3727
+ "site": {
3728
+ "anyOf": [
3729
+ {
3730
+ "type": "string",
3731
+ "const": "YouTube"
3732
+ }
3733
+ ],
3734
+ "description": "Video site"
3735
+ },
3736
+ "size": {
3737
+ "type": "number",
3738
+ "description": "Video size"
3739
+ },
3740
+ "type": {
3741
+ "anyOf": [
3742
+ {
3743
+ "type": "string",
3744
+ "const": "Teaser"
3745
+ }
3746
+ ],
3747
+ "description": "Video type"
3748
+ },
3749
+ "official": {
3750
+ "type": "boolean",
3751
+ "description": "Video official"
3752
+ },
3753
+ "published_at": {
3754
+ "type": "string",
3755
+ "description": "Video published at"
3756
+ },
3757
+ "id": {
3758
+ "type": "string",
3759
+ "description": "Video ID"
3760
+ }
3761
+ },
3762
+ "required": [
3763
+ "iso_639_1",
3764
+ "iso_3166_1",
3765
+ "name",
3766
+ "key",
3767
+ "site",
3768
+ "size",
3769
+ "type",
3770
+ "official",
3771
+ "published_at",
3772
+ "id"
3773
+ ]
3774
+ },
3775
+ "description": "Videos"
3776
+ }
3777
+ },
3778
+ "required": [
3779
+ "id",
3780
+ "results"
3781
+ ]
3782
+ },
3783
+ "similar": {
3784
+ "type": "object",
3785
+ "properties": {
3786
+ "page": {
3787
+ "type": "number",
3788
+ "description": "Page number"
3789
+ },
3790
+ "results": {
3791
+ "type": "array",
3792
+ "items": {
3793
+ "type": "object",
3794
+ "properties": {
3795
+ "backdrop_path": {
3796
+ "anyOf": [
3797
+ {
3798
+ "type": "string"
3799
+ },
3800
+ {
3801
+ "type": "null"
3802
+ }
3803
+ ],
3804
+ "description": "Backdrop path (relative URL)"
3805
+ },
3806
+ "first_air_date": {
3807
+ "anyOf": [
3808
+ {
3809
+ "type": "string"
3810
+ },
3811
+ {
3812
+ "type": "null"
3813
+ }
3814
+ ],
3815
+ "description": "First air date (YYYY-MM-DD format)"
3816
+ },
3817
+ "genre_ids": {
3818
+ "type": "array",
3819
+ "items": {
3820
+ "type": "number"
3821
+ },
3822
+ "description": "Array of genre IDs"
3823
+ },
3824
+ "id": {
3825
+ "type": "number",
3826
+ "description": "Unique identifier for the serie"
3827
+ },
3828
+ "name": {
3829
+ "type": "string",
3830
+ "description": "Serie name"
3831
+ },
3832
+ "origin_country": {
3833
+ "type": "array",
3834
+ "items": {
3835
+ "type": "string"
3836
+ },
3837
+ "description": "Array of origin countries"
3838
+ },
3839
+ "original_language": {
3840
+ "type": "string",
3841
+ "description": "Original language code (e.g., 'en', 'es', 'fr')"
3842
+ },
3843
+ "original_name": {
3844
+ "type": "string",
3845
+ "description": "Original serie name (in original language)"
3846
+ },
3847
+ "overview": {
3848
+ "anyOf": [
3849
+ {
3850
+ "type": "string"
3851
+ },
3852
+ {
3853
+ "type": "null"
3854
+ }
3855
+ ],
3856
+ "description": "Serie overview/synopsis"
3857
+ },
3858
+ "popularity": {
3859
+ "type": "number",
3860
+ "description": "Popularity score"
3861
+ },
3862
+ "poster_path": {
3863
+ "anyOf": [
3864
+ {
3865
+ "type": "string"
3866
+ },
3867
+ {
3868
+ "type": "null"
3869
+ }
3870
+ ],
3871
+ "description": "Poster path (relative URL)"
3872
+ },
3873
+ "vote_average": {
3874
+ "type": "number",
3875
+ "description": "Average vote rating (0-10)"
3876
+ },
3877
+ "vote_count": {
3878
+ "type": "number",
3879
+ "description": "Total number of votes"
3880
+ }
3881
+ },
3882
+ "required": [
3883
+ "backdrop_path",
3884
+ "first_air_date",
3885
+ "genre_ids",
3886
+ "id",
3887
+ "name",
3888
+ "origin_country",
3889
+ "original_language",
3890
+ "original_name",
3891
+ "overview",
3892
+ "popularity",
3893
+ "poster_path",
3894
+ "vote_average",
3895
+ "vote_count"
3896
+ ]
3897
+ },
3898
+ "description": "Series"
3899
+ },
3900
+ "total_pages": {
3901
+ "type": "number",
3902
+ "description": "Total pages"
3903
+ },
3904
+ "total_results": {
3905
+ "type": "number",
3906
+ "description": "Total results"
3907
+ }
3908
+ },
3909
+ "required": [
3910
+ "page",
3911
+ "results",
3912
+ "total_pages",
3913
+ "total_results"
3914
+ ]
3149
3915
  }
3150
3916
  },
3151
3917
  "required": [
@@ -3488,7 +4254,12 @@
3488
4254
  "description": "Video key"
3489
4255
  },
3490
4256
  "site": {
3491
- "type": "string",
4257
+ "anyOf": [
4258
+ {
4259
+ "type": "string",
4260
+ "const": "YouTube"
4261
+ }
4262
+ ],
3492
4263
  "description": "Video site"
3493
4264
  },
3494
4265
  "size": {
@@ -3496,7 +4267,12 @@
3496
4267
  "description": "Video size"
3497
4268
  },
3498
4269
  "type": {
3499
- "type": "string",
4270
+ "anyOf": [
4271
+ {
4272
+ "type": "string",
4273
+ "const": "Teaser"
4274
+ }
4275
+ ],
3500
4276
  "description": "Video type"
3501
4277
  },
3502
4278
  "official": {