@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.
- package/API/index.ts +7 -3
- package/CHANGELOG.md +16 -0
- package/DataTypes/Video.ts +10 -2
- package/Enums/MonetizationType.ts +15 -0
- package/Enums/ReleaseType.ts +17 -0
- package/Enums/WatchProvider.ts +27 -0
- package/Enums/index.ts +4 -0
- package/Movies/MovieDetails.ts +5 -1
- package/README.md +58 -12
- package/TVSeries/SerieDetails.ts +5 -1
- package/index.ts +1 -0
- package/json-schemas/API/MethodsSchema.json +780 -4
- package/json-schemas/API/SpecSchema.json +780 -4
- package/json-schemas/API/index.json +1710 -158
- package/json-schemas/DataTypes/VideoSchema.json +12 -2
- package/json-schemas/DataTypes/VideosResponseSchema.json +12 -2
- package/json-schemas/DataTypes/index.json +24 -4
- package/json-schemas/Enums/MonetizationType.json +11 -0
- package/json-schemas/Enums/ReleaseType.json +12 -0
- package/json-schemas/Enums/WatchProvider.json +17 -0
- package/json-schemas/Enums/index.json +47 -0
- package/json-schemas/MonetizationType.json +11 -0
- package/json-schemas/MovieDetailsSchema.json +365 -0
- package/json-schemas/Movies/MovieDetailsSchema.json +365 -0
- package/json-schemas/Movies/index.json +365 -0
- package/json-schemas/ReleaseType.json +12 -0
- package/json-schemas/SerieDetailsSchema.json +391 -0
- package/json-schemas/TVSeries/SerieDetailsSchema.json +391 -0
- package/json-schemas/TVSeries/index.json +391 -0
- package/json-schemas/VideoSchema.json +12 -2
- package/json-schemas/VideosResponseSchema.json +12 -2
- package/json-schemas/WatchProvider.json +17 -0
- package/json-schemas/index.json +820 -4
- package/package.json +1 -1
|
@@ -484,6 +484,397 @@
|
|
|
484
484
|
"type": {
|
|
485
485
|
"type": "string",
|
|
486
486
|
"description": "Type of the serie"
|
|
487
|
+
},
|
|
488
|
+
"images": {
|
|
489
|
+
"type": "object",
|
|
490
|
+
"properties": {
|
|
491
|
+
"id": {
|
|
492
|
+
"type": "number",
|
|
493
|
+
"description": "Image ID"
|
|
494
|
+
},
|
|
495
|
+
"backdrops": {
|
|
496
|
+
"type": "array",
|
|
497
|
+
"items": {
|
|
498
|
+
"type": "object",
|
|
499
|
+
"properties": {
|
|
500
|
+
"aspect_ratio": {
|
|
501
|
+
"type": "number",
|
|
502
|
+
"description": "Aspect ratio"
|
|
503
|
+
},
|
|
504
|
+
"height": {
|
|
505
|
+
"type": "number",
|
|
506
|
+
"description": "Height"
|
|
507
|
+
},
|
|
508
|
+
"iso_639_1": {
|
|
509
|
+
"anyOf": [
|
|
510
|
+
{
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"type": "null"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"description": "Spoken language ISO 639-1 code"
|
|
518
|
+
},
|
|
519
|
+
"file_path": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"description": "File path"
|
|
522
|
+
},
|
|
523
|
+
"vote_average": {
|
|
524
|
+
"type": "number",
|
|
525
|
+
"description": "Vote average"
|
|
526
|
+
},
|
|
527
|
+
"vote_count": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"description": "Vote count"
|
|
530
|
+
},
|
|
531
|
+
"width": {
|
|
532
|
+
"type": "number",
|
|
533
|
+
"description": "Width"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"aspect_ratio",
|
|
538
|
+
"height",
|
|
539
|
+
"iso_639_1",
|
|
540
|
+
"file_path",
|
|
541
|
+
"vote_average",
|
|
542
|
+
"vote_count",
|
|
543
|
+
"width"
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
"description": "Backdrops"
|
|
547
|
+
},
|
|
548
|
+
"logos": {
|
|
549
|
+
"type": "array",
|
|
550
|
+
"items": {
|
|
551
|
+
"type": "object",
|
|
552
|
+
"properties": {
|
|
553
|
+
"aspect_ratio": {
|
|
554
|
+
"type": "number",
|
|
555
|
+
"description": "Aspect ratio"
|
|
556
|
+
},
|
|
557
|
+
"height": {
|
|
558
|
+
"type": "number",
|
|
559
|
+
"description": "Height"
|
|
560
|
+
},
|
|
561
|
+
"iso_639_1": {
|
|
562
|
+
"anyOf": [
|
|
563
|
+
{
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"type": "null"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"description": "Spoken language ISO 639-1 code"
|
|
571
|
+
},
|
|
572
|
+
"file_path": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"description": "File path"
|
|
575
|
+
},
|
|
576
|
+
"vote_average": {
|
|
577
|
+
"type": "number",
|
|
578
|
+
"description": "Vote average"
|
|
579
|
+
},
|
|
580
|
+
"vote_count": {
|
|
581
|
+
"type": "number",
|
|
582
|
+
"description": "Vote count"
|
|
583
|
+
},
|
|
584
|
+
"width": {
|
|
585
|
+
"type": "number",
|
|
586
|
+
"description": "Width"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"aspect_ratio",
|
|
591
|
+
"height",
|
|
592
|
+
"iso_639_1",
|
|
593
|
+
"file_path",
|
|
594
|
+
"vote_average",
|
|
595
|
+
"vote_count",
|
|
596
|
+
"width"
|
|
597
|
+
]
|
|
598
|
+
},
|
|
599
|
+
"description": "Logos"
|
|
600
|
+
},
|
|
601
|
+
"posters": {
|
|
602
|
+
"type": "array",
|
|
603
|
+
"items": {
|
|
604
|
+
"type": "object",
|
|
605
|
+
"properties": {
|
|
606
|
+
"aspect_ratio": {
|
|
607
|
+
"type": "number",
|
|
608
|
+
"description": "Aspect ratio"
|
|
609
|
+
},
|
|
610
|
+
"height": {
|
|
611
|
+
"type": "number",
|
|
612
|
+
"description": "Height"
|
|
613
|
+
},
|
|
614
|
+
"iso_639_1": {
|
|
615
|
+
"anyOf": [
|
|
616
|
+
{
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"type": "null"
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"description": "Spoken language ISO 639-1 code"
|
|
624
|
+
},
|
|
625
|
+
"file_path": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"description": "File path"
|
|
628
|
+
},
|
|
629
|
+
"vote_average": {
|
|
630
|
+
"type": "number",
|
|
631
|
+
"description": "Vote average"
|
|
632
|
+
},
|
|
633
|
+
"vote_count": {
|
|
634
|
+
"type": "number",
|
|
635
|
+
"description": "Vote count"
|
|
636
|
+
},
|
|
637
|
+
"width": {
|
|
638
|
+
"type": "number",
|
|
639
|
+
"description": "Width"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"aspect_ratio",
|
|
644
|
+
"height",
|
|
645
|
+
"iso_639_1",
|
|
646
|
+
"file_path",
|
|
647
|
+
"vote_average",
|
|
648
|
+
"vote_count",
|
|
649
|
+
"width"
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
"description": "Posters"
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"required": [
|
|
656
|
+
"id",
|
|
657
|
+
"backdrops",
|
|
658
|
+
"logos",
|
|
659
|
+
"posters"
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
"videos": {
|
|
663
|
+
"type": "object",
|
|
664
|
+
"properties": {
|
|
665
|
+
"id": {
|
|
666
|
+
"type": "number",
|
|
667
|
+
"description": "Video ID"
|
|
668
|
+
},
|
|
669
|
+
"results": {
|
|
670
|
+
"type": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"iso_639_1": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"description": "Spoken language ISO 639-1 code"
|
|
677
|
+
},
|
|
678
|
+
"iso_3166_1": {
|
|
679
|
+
"type": "string",
|
|
680
|
+
"description": "Production country ISO 3166-1 Alpha-2 code"
|
|
681
|
+
},
|
|
682
|
+
"name": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "Video name"
|
|
685
|
+
},
|
|
686
|
+
"key": {
|
|
687
|
+
"type": "string",
|
|
688
|
+
"description": "Video key"
|
|
689
|
+
},
|
|
690
|
+
"site": {
|
|
691
|
+
"anyOf": [
|
|
692
|
+
{
|
|
693
|
+
"type": "string",
|
|
694
|
+
"const": "YouTube"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"description": "Video site"
|
|
698
|
+
},
|
|
699
|
+
"size": {
|
|
700
|
+
"type": "number",
|
|
701
|
+
"description": "Video size"
|
|
702
|
+
},
|
|
703
|
+
"type": {
|
|
704
|
+
"anyOf": [
|
|
705
|
+
{
|
|
706
|
+
"type": "string",
|
|
707
|
+
"const": "Teaser"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"description": "Video type"
|
|
711
|
+
},
|
|
712
|
+
"official": {
|
|
713
|
+
"type": "boolean",
|
|
714
|
+
"description": "Video official"
|
|
715
|
+
},
|
|
716
|
+
"published_at": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"description": "Video published at"
|
|
719
|
+
},
|
|
720
|
+
"id": {
|
|
721
|
+
"type": "string",
|
|
722
|
+
"description": "Video ID"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"required": [
|
|
726
|
+
"iso_639_1",
|
|
727
|
+
"iso_3166_1",
|
|
728
|
+
"name",
|
|
729
|
+
"key",
|
|
730
|
+
"site",
|
|
731
|
+
"size",
|
|
732
|
+
"type",
|
|
733
|
+
"official",
|
|
734
|
+
"published_at",
|
|
735
|
+
"id"
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
"description": "Videos"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"required": [
|
|
742
|
+
"id",
|
|
743
|
+
"results"
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
"similar": {
|
|
747
|
+
"type": "object",
|
|
748
|
+
"properties": {
|
|
749
|
+
"page": {
|
|
750
|
+
"type": "number",
|
|
751
|
+
"description": "Page number"
|
|
752
|
+
},
|
|
753
|
+
"results": {
|
|
754
|
+
"type": "array",
|
|
755
|
+
"items": {
|
|
756
|
+
"type": "object",
|
|
757
|
+
"properties": {
|
|
758
|
+
"backdrop_path": {
|
|
759
|
+
"anyOf": [
|
|
760
|
+
{
|
|
761
|
+
"type": "string"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "null"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"description": "Backdrop path (relative URL)"
|
|
768
|
+
},
|
|
769
|
+
"first_air_date": {
|
|
770
|
+
"anyOf": [
|
|
771
|
+
{
|
|
772
|
+
"type": "string"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"type": "null"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"description": "First air date (YYYY-MM-DD format)"
|
|
779
|
+
},
|
|
780
|
+
"genre_ids": {
|
|
781
|
+
"type": "array",
|
|
782
|
+
"items": {
|
|
783
|
+
"type": "number"
|
|
784
|
+
},
|
|
785
|
+
"description": "Array of genre IDs"
|
|
786
|
+
},
|
|
787
|
+
"id": {
|
|
788
|
+
"type": "number",
|
|
789
|
+
"description": "Unique identifier for the serie"
|
|
790
|
+
},
|
|
791
|
+
"name": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"description": "Serie name"
|
|
794
|
+
},
|
|
795
|
+
"origin_country": {
|
|
796
|
+
"type": "array",
|
|
797
|
+
"items": {
|
|
798
|
+
"type": "string"
|
|
799
|
+
},
|
|
800
|
+
"description": "Array of origin countries"
|
|
801
|
+
},
|
|
802
|
+
"original_language": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"description": "Original language code (e.g., 'en', 'es', 'fr')"
|
|
805
|
+
},
|
|
806
|
+
"original_name": {
|
|
807
|
+
"type": "string",
|
|
808
|
+
"description": "Original serie name (in original language)"
|
|
809
|
+
},
|
|
810
|
+
"overview": {
|
|
811
|
+
"anyOf": [
|
|
812
|
+
{
|
|
813
|
+
"type": "string"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"type": "null"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"description": "Serie overview/synopsis"
|
|
820
|
+
},
|
|
821
|
+
"popularity": {
|
|
822
|
+
"type": "number",
|
|
823
|
+
"description": "Popularity score"
|
|
824
|
+
},
|
|
825
|
+
"poster_path": {
|
|
826
|
+
"anyOf": [
|
|
827
|
+
{
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"type": "null"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"description": "Poster path (relative URL)"
|
|
835
|
+
},
|
|
836
|
+
"vote_average": {
|
|
837
|
+
"type": "number",
|
|
838
|
+
"description": "Average vote rating (0-10)"
|
|
839
|
+
},
|
|
840
|
+
"vote_count": {
|
|
841
|
+
"type": "number",
|
|
842
|
+
"description": "Total number of votes"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"required": [
|
|
846
|
+
"backdrop_path",
|
|
847
|
+
"first_air_date",
|
|
848
|
+
"genre_ids",
|
|
849
|
+
"id",
|
|
850
|
+
"name",
|
|
851
|
+
"origin_country",
|
|
852
|
+
"original_language",
|
|
853
|
+
"original_name",
|
|
854
|
+
"overview",
|
|
855
|
+
"popularity",
|
|
856
|
+
"poster_path",
|
|
857
|
+
"vote_average",
|
|
858
|
+
"vote_count"
|
|
859
|
+
]
|
|
860
|
+
},
|
|
861
|
+
"description": "Series"
|
|
862
|
+
},
|
|
863
|
+
"total_pages": {
|
|
864
|
+
"type": "number",
|
|
865
|
+
"description": "Total pages"
|
|
866
|
+
},
|
|
867
|
+
"total_results": {
|
|
868
|
+
"type": "number",
|
|
869
|
+
"description": "Total results"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"required": [
|
|
873
|
+
"page",
|
|
874
|
+
"results",
|
|
875
|
+
"total_pages",
|
|
876
|
+
"total_results"
|
|
877
|
+
]
|
|
487
878
|
}
|
|
488
879
|
},
|
|
489
880
|
"required": [
|