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