tmdb-ts 1.8.0 → 2.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/LICENSE.md +1 -1
- package/dist/api.js +3 -2
- package/dist/api.js.map +1 -1
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.js +5 -0
- package/dist/common/constants.js.map +1 -0
- package/dist/endpoints/changes.js +1 -1
- package/dist/endpoints/changes.js.map +1 -1
- package/dist/endpoints/collections.d.ts +2 -2
- package/dist/endpoints/configuration.d.ts +7 -2
- package/dist/endpoints/configuration.js +16 -1
- package/dist/endpoints/configuration.js.map +1 -1
- package/dist/endpoints/discover.d.ts +1 -55
- package/dist/endpoints/discover.js.map +1 -1
- package/dist/endpoints/find.d.ts +1 -1
- package/dist/endpoints/find.js +2 -2
- package/dist/endpoints/find.js.map +1 -1
- package/dist/endpoints/index.d.ts +1 -0
- package/dist/endpoints/index.js +1 -0
- package/dist/endpoints/index.js.map +1 -1
- package/dist/endpoints/keywords.d.ts +4 -0
- package/dist/endpoints/keywords.js +4 -0
- package/dist/endpoints/keywords.js.map +1 -1
- package/dist/endpoints/people.d.ts +5 -2
- package/dist/endpoints/people.js +3 -0
- package/dist/endpoints/people.js.map +1 -1
- package/dist/endpoints/watch-providers.d.ts +11 -0
- package/dist/endpoints/watch-providers.js +22 -0
- package/dist/endpoints/watch-providers.js.map +1 -0
- package/dist/tmdb.d.ts +2 -1
- package/dist/tmdb.js +3 -0
- package/dist/tmdb.js.map +1 -1
- package/dist/types/account.d.ts +2 -1
- package/dist/types/certification.d.ts +47 -5
- package/dist/types/changes.d.ts +1 -1
- package/dist/types/collections.d.ts +3 -6
- package/dist/types/companies.d.ts +1 -1
- package/dist/types/configuration.d.ts +132 -88
- package/dist/types/configuration.js +111 -99
- package/dist/types/configuration.js.map +1 -1
- package/dist/types/credits.d.ts +6 -4
- package/dist/types/discover.d.ts +56 -1
- package/dist/types/index.d.ts +16 -5
- package/dist/types/index.js +66 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/movies.d.ts +4 -3
- package/dist/types/movies.js +1 -1
- package/dist/types/movies.js.map +1 -1
- package/dist/types/options.d.ts +9 -4
- package/dist/types/options.js +140 -0
- package/dist/types/options.js.map +1 -1
- package/dist/types/people.d.ts +3 -3
- package/dist/types/regions.d.ts +6 -0
- package/dist/types/regions.js +3 -0
- package/dist/types/regions.js.map +1 -0
- package/dist/types/tv-episode.d.ts +2 -2
- package/dist/types/watch-providers.d.ts +17 -0
- package/dist/utils/getImagePath.js.map +1 -1
- package/dist/utils/parseOptions.js +1 -1
- package/dist/utils/parseOptions.js.map +1 -1
- package/package.json +18 -23
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CountryCode } from '../types';
|
|
1
2
|
export interface ImageConfiguration {
|
|
2
3
|
base_url: string;
|
|
3
4
|
secure_base_url: string;
|
|
@@ -11,95 +12,138 @@ export interface Configuration {
|
|
|
11
12
|
images: ImageConfiguration;
|
|
12
13
|
change_keys: ChangeKeys[];
|
|
13
14
|
}
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
W1280 = "w1280",
|
|
19
|
-
ORIGINAL = "original"
|
|
15
|
+
export interface CountryConfiguration {
|
|
16
|
+
iso_3166_1: CountryCode;
|
|
17
|
+
english_name: string;
|
|
18
|
+
native_name: string;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
W185 = "w185",
|
|
26
|
-
W300 = "w300",
|
|
27
|
-
W500 = "w500",
|
|
28
|
-
ORIGINAL = "original"
|
|
20
|
+
export interface LanguageConfiguration {
|
|
21
|
+
iso_639_1: string;
|
|
22
|
+
english_name: string;
|
|
23
|
+
name: string;
|
|
29
24
|
}
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
W185 = "w185",
|
|
34
|
-
W300 = "w300",
|
|
35
|
-
W500 = "w500",
|
|
36
|
-
W780 = "w780",
|
|
37
|
-
ORIGINAL = "original"
|
|
25
|
+
export interface JobConfiguration {
|
|
26
|
+
department: string;
|
|
27
|
+
jobs: string[];
|
|
38
28
|
}
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
W632 = "w632",
|
|
43
|
-
ORIGINAL = "original"
|
|
44
|
-
}
|
|
45
|
-
export declare enum StillSizes {
|
|
46
|
-
W92 = "w92",
|
|
47
|
-
W185 = "w185",
|
|
48
|
-
W300 = "w300",
|
|
49
|
-
ORIGINAL = "original"
|
|
50
|
-
}
|
|
51
|
-
export declare enum ChangeKeys {
|
|
52
|
-
ADULT = "adult",
|
|
53
|
-
AIR_DATE = "air_date",
|
|
54
|
-
ALSO_KNOWN_AS = "also_known_as",
|
|
55
|
-
ALTERNATIVE_TITLES = "alternative_titles",
|
|
56
|
-
BIOGRAPHY = "biography",
|
|
57
|
-
BIRTHDAY = "birthday",
|
|
58
|
-
BUDGET = "budget",
|
|
59
|
-
CAST = "cast",
|
|
60
|
-
CERTIFICATIONS = "certifications",
|
|
61
|
-
CHARACTER_NAMES = "character_names",
|
|
62
|
-
CREATED_BY = "created_by",
|
|
63
|
-
CREW = "crew",
|
|
64
|
-
DEATHDAY = "deathday",
|
|
65
|
-
EPISODE = "episode",
|
|
66
|
-
EPISODE_NUMBER = "episode_number",
|
|
67
|
-
EPISODE_RUN_TIME = "episode_run_time",
|
|
68
|
-
FREEBASE_ID = "freebase_id",
|
|
69
|
-
FREEBASE_MID = "freebase_mid",
|
|
70
|
-
GENERAL = "general",
|
|
71
|
-
GENRES = "genres",
|
|
72
|
-
GUEST_STARS = "guest_stars",
|
|
73
|
-
HOMEPAGE = "homepage",
|
|
74
|
-
IMAGES = "images",
|
|
75
|
-
IMDB_ID = "imdb_id",
|
|
76
|
-
LANGUAGES = "languages",
|
|
77
|
-
NAME = "name",
|
|
78
|
-
NETWORK = "network",
|
|
79
|
-
ORIGIN_COUNTRY = "origin_country",
|
|
80
|
-
ORIGINAL_NAME = "original_name",
|
|
81
|
-
ORIGINAL_TITLE = "original_title",
|
|
82
|
-
OVERVIEW = "overview",
|
|
83
|
-
PARTS = "parts",
|
|
84
|
-
PLACE_OF_BIRTH = "place_of_birth",
|
|
85
|
-
PLOT_KEYWORDS = "plot_keywords",
|
|
86
|
-
PRODUCTION_CODE = "production_code",
|
|
87
|
-
PRODUCTION_COMPANIES = "production_companies",
|
|
88
|
-
PRODUCTION_COUNTRIES = "production_countries",
|
|
89
|
-
RELEASES = "releases",
|
|
90
|
-
REVENUE = "revenue",
|
|
91
|
-
RUNTIME = "runtime",
|
|
92
|
-
SEASON = "season",
|
|
93
|
-
SEASON_NUMBER = "season_number",
|
|
94
|
-
SEASON_REGULAR = "season_regular",
|
|
95
|
-
SPOKEN_LANGUAGES = "spoken_languages",
|
|
96
|
-
STATUS = "status",
|
|
97
|
-
TAGLINE = "tagline",
|
|
98
|
-
TITLE = "title",
|
|
99
|
-
TRANSLATIONS = "translations",
|
|
100
|
-
TVDB_ID = "tvdb_id",
|
|
101
|
-
TVRAGE_ID = "tvrage_id",
|
|
102
|
-
TYPE = "type",
|
|
103
|
-
VIDEO = "video",
|
|
104
|
-
VIDEOS = "videos"
|
|
29
|
+
export interface TimezoneConfiguration {
|
|
30
|
+
iso_3166_1: CountryCode;
|
|
31
|
+
zones: string[];
|
|
105
32
|
}
|
|
33
|
+
export declare const MediaSize: {
|
|
34
|
+
readonly W45: "w45";
|
|
35
|
+
readonly W92: "w92";
|
|
36
|
+
readonly W154: "w154";
|
|
37
|
+
readonly W185: "w185";
|
|
38
|
+
readonly W300: "w300";
|
|
39
|
+
readonly W342: "w342";
|
|
40
|
+
readonly W500: "w500";
|
|
41
|
+
readonly W632: "w632";
|
|
42
|
+
readonly W780: "w780";
|
|
43
|
+
readonly W1280: "w1280";
|
|
44
|
+
readonly ORIGINAL: "original";
|
|
45
|
+
};
|
|
46
|
+
export declare const BackdropSize: {
|
|
47
|
+
readonly W45: "w45";
|
|
48
|
+
readonly W92: "w92";
|
|
49
|
+
readonly W154: "w154";
|
|
50
|
+
readonly W185: "w185";
|
|
51
|
+
readonly W300: "w300";
|
|
52
|
+
readonly W500: "w500";
|
|
53
|
+
readonly W780: "w780";
|
|
54
|
+
readonly W1280: "w1280";
|
|
55
|
+
readonly ORIGINAL: "original";
|
|
56
|
+
};
|
|
57
|
+
type BackdropSizes = (typeof BackdropSize)[keyof typeof BackdropSize];
|
|
58
|
+
export declare const LogoSize: {
|
|
59
|
+
readonly W45: "w45";
|
|
60
|
+
readonly W92: "w92";
|
|
61
|
+
readonly W154: "w154";
|
|
62
|
+
readonly W185: "w185";
|
|
63
|
+
readonly W300: "w300";
|
|
64
|
+
readonly W500: "w500";
|
|
65
|
+
readonly ORIGINAL: "original";
|
|
66
|
+
};
|
|
67
|
+
type LogoSizes = (typeof LogoSize)[keyof typeof LogoSize];
|
|
68
|
+
export declare const PosterSize: {
|
|
69
|
+
readonly W92: "w92";
|
|
70
|
+
readonly W154: "w154";
|
|
71
|
+
readonly W185: "w185";
|
|
72
|
+
readonly W300: "w300";
|
|
73
|
+
readonly W342: "w342";
|
|
74
|
+
readonly W500: "w500";
|
|
75
|
+
readonly W780: "w780";
|
|
76
|
+
readonly ORIGINAL: "original";
|
|
77
|
+
};
|
|
78
|
+
type PosterSizes = (typeof PosterSize)[keyof typeof PosterSize];
|
|
79
|
+
export declare const ProfileSize: {
|
|
80
|
+
readonly W45: "w45";
|
|
81
|
+
readonly W185: "w185";
|
|
82
|
+
readonly W632: "w632";
|
|
83
|
+
readonly ORIGINAL: "original";
|
|
84
|
+
};
|
|
85
|
+
type ProfileSizes = (typeof ProfileSize)[keyof typeof ProfileSize];
|
|
86
|
+
export declare const StillSize: {
|
|
87
|
+
readonly W92: "w92";
|
|
88
|
+
readonly W185: "w185";
|
|
89
|
+
readonly W300: "w300";
|
|
90
|
+
readonly ORIGINAL: "original";
|
|
91
|
+
};
|
|
92
|
+
type StillSizes = (typeof StillSize)[keyof typeof StillSize];
|
|
93
|
+
export declare const ChangeKey: {
|
|
94
|
+
readonly ADULT: "adult";
|
|
95
|
+
readonly AIR_DATE: "air_date";
|
|
96
|
+
readonly ALSO_KNOWN_AS: "also_known_as";
|
|
97
|
+
readonly ALTERNATIVE_TITLES: "alternative_titles";
|
|
98
|
+
readonly BIOGRAPHY: "biography";
|
|
99
|
+
readonly BIRTHDAY: "birthday";
|
|
100
|
+
readonly BUDGET: "budget";
|
|
101
|
+
readonly CAST: "cast";
|
|
102
|
+
readonly CERTIFICATIONS: "certifications";
|
|
103
|
+
readonly CHARACTER_NAMES: "character_names";
|
|
104
|
+
readonly CREATED_BY: "created_by";
|
|
105
|
+
readonly CREW: "crew";
|
|
106
|
+
readonly DEATHDAY: "deathday";
|
|
107
|
+
readonly EPISODE: "episode";
|
|
108
|
+
readonly EPISODE_NUMBER: "episode_number";
|
|
109
|
+
readonly EPISODE_RUN_TIME: "episode_run_time";
|
|
110
|
+
readonly FREEBASE_ID: "freebase_id";
|
|
111
|
+
readonly FREEBASE_MID: "freebase_mid";
|
|
112
|
+
readonly GENERAL: "general";
|
|
113
|
+
readonly GENRES: "genres";
|
|
114
|
+
readonly GUEST_STARS: "guest_stars";
|
|
115
|
+
readonly HOMEPAGE: "homepage";
|
|
116
|
+
readonly IMAGES: "images";
|
|
117
|
+
readonly IMDB_ID: "imdb_id";
|
|
118
|
+
readonly LANGUAGES: "languages";
|
|
119
|
+
readonly NAME: "name";
|
|
120
|
+
readonly NETWORK: "network";
|
|
121
|
+
readonly ORIGIN_COUNTRY: "origin_country";
|
|
122
|
+
readonly ORIGINAL_NAME: "original_name";
|
|
123
|
+
readonly ORIGINAL_TITLE: "original_title";
|
|
124
|
+
readonly OVERVIEW: "overview";
|
|
125
|
+
readonly PARTS: "parts";
|
|
126
|
+
readonly PLACE_OF_BIRTH: "place_of_birth";
|
|
127
|
+
readonly PLOT_KEYWORDS: "plot_keywords";
|
|
128
|
+
readonly PRODUCTION_CODE: "production_code";
|
|
129
|
+
readonly PRODUCTION_COMPANIES: "production_companies";
|
|
130
|
+
readonly PRODUCTION_COUNTRIES: "production_countries";
|
|
131
|
+
readonly RELEASES: "releases";
|
|
132
|
+
readonly REVENUE: "revenue";
|
|
133
|
+
readonly RUNTIME: "runtime";
|
|
134
|
+
readonly SEASON: "season";
|
|
135
|
+
readonly SEASON_NUMBER: "season_number";
|
|
136
|
+
readonly SEASON_REGULAR: "season_regular";
|
|
137
|
+
readonly SPOKEN_LANGUAGES: "spoken_languages";
|
|
138
|
+
readonly STATUS: "status";
|
|
139
|
+
readonly TAGLINE: "tagline";
|
|
140
|
+
readonly TITLE: "title";
|
|
141
|
+
readonly TRANSLATIONS: "translations";
|
|
142
|
+
readonly TVDB_ID: "tvdb_id";
|
|
143
|
+
readonly TVRAGE_ID: "tvrage_id";
|
|
144
|
+
readonly TYPE: "type";
|
|
145
|
+
readonly VIDEO: "video";
|
|
146
|
+
readonly VIDEOS: "videos";
|
|
147
|
+
};
|
|
148
|
+
type ChangeKeys = (typeof ChangeKey)[keyof typeof ChangeKey];
|
|
149
|
+
export {};
|
|
@@ -1,102 +1,114 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
3
|
+
exports.ChangeKey = exports.StillSize = exports.ProfileSize = exports.PosterSize = exports.LogoSize = exports.BackdropSize = exports.MediaSize = void 0;
|
|
4
|
+
exports.MediaSize = {
|
|
5
|
+
W45: 'w45',
|
|
6
|
+
W92: 'w92',
|
|
7
|
+
W154: 'w154',
|
|
8
|
+
W185: 'w185',
|
|
9
|
+
W300: 'w300',
|
|
10
|
+
W342: 'w342',
|
|
11
|
+
W500: 'w500',
|
|
12
|
+
W632: 'w632',
|
|
13
|
+
W780: 'w780',
|
|
14
|
+
W1280: 'w1280',
|
|
15
|
+
ORIGINAL: 'original',
|
|
16
|
+
};
|
|
17
|
+
exports.BackdropSize = {
|
|
18
|
+
W45: 'w45',
|
|
19
|
+
W92: 'w92',
|
|
20
|
+
W154: 'w154',
|
|
21
|
+
W185: 'w185',
|
|
22
|
+
W300: 'w300',
|
|
23
|
+
W500: 'w500',
|
|
24
|
+
W780: 'w780',
|
|
25
|
+
W1280: 'w1280',
|
|
26
|
+
ORIGINAL: 'original',
|
|
27
|
+
};
|
|
28
|
+
exports.LogoSize = {
|
|
29
|
+
W45: 'w45',
|
|
30
|
+
W92: 'w92',
|
|
31
|
+
W154: 'w154',
|
|
32
|
+
W185: 'w185',
|
|
33
|
+
W300: 'w300',
|
|
34
|
+
W500: 'w500',
|
|
35
|
+
ORIGINAL: 'original',
|
|
36
|
+
};
|
|
37
|
+
exports.PosterSize = {
|
|
38
|
+
W92: 'w92',
|
|
39
|
+
W154: 'w154',
|
|
40
|
+
W185: 'w185',
|
|
41
|
+
W300: 'w300',
|
|
42
|
+
W342: 'w342',
|
|
43
|
+
W500: 'w500',
|
|
44
|
+
W780: 'w780',
|
|
45
|
+
ORIGINAL: 'original',
|
|
46
|
+
};
|
|
47
|
+
exports.ProfileSize = {
|
|
48
|
+
W45: 'w45',
|
|
49
|
+
W185: 'w185',
|
|
50
|
+
W632: 'w632',
|
|
51
|
+
ORIGINAL: 'original',
|
|
52
|
+
};
|
|
53
|
+
exports.StillSize = {
|
|
54
|
+
W92: 'w92',
|
|
55
|
+
W185: 'w185',
|
|
56
|
+
W300: 'w300',
|
|
57
|
+
ORIGINAL: 'original',
|
|
58
|
+
};
|
|
59
|
+
exports.ChangeKey = {
|
|
60
|
+
ADULT: 'adult',
|
|
61
|
+
AIR_DATE: 'air_date',
|
|
62
|
+
ALSO_KNOWN_AS: 'also_known_as',
|
|
63
|
+
ALTERNATIVE_TITLES: 'alternative_titles',
|
|
64
|
+
BIOGRAPHY: 'biography',
|
|
65
|
+
BIRTHDAY: 'birthday',
|
|
66
|
+
BUDGET: 'budget',
|
|
67
|
+
CAST: 'cast',
|
|
68
|
+
CERTIFICATIONS: 'certifications',
|
|
69
|
+
CHARACTER_NAMES: 'character_names',
|
|
70
|
+
CREATED_BY: 'created_by',
|
|
71
|
+
CREW: 'crew',
|
|
72
|
+
DEATHDAY: 'deathday',
|
|
73
|
+
EPISODE: 'episode',
|
|
74
|
+
EPISODE_NUMBER: 'episode_number',
|
|
75
|
+
EPISODE_RUN_TIME: 'episode_run_time',
|
|
76
|
+
FREEBASE_ID: 'freebase_id',
|
|
77
|
+
FREEBASE_MID: 'freebase_mid',
|
|
78
|
+
GENERAL: 'general',
|
|
79
|
+
GENRES: 'genres',
|
|
80
|
+
GUEST_STARS: 'guest_stars',
|
|
81
|
+
HOMEPAGE: 'homepage',
|
|
82
|
+
IMAGES: 'images',
|
|
83
|
+
IMDB_ID: 'imdb_id',
|
|
84
|
+
LANGUAGES: 'languages',
|
|
85
|
+
NAME: 'name',
|
|
86
|
+
NETWORK: 'network',
|
|
87
|
+
ORIGIN_COUNTRY: 'origin_country',
|
|
88
|
+
ORIGINAL_NAME: 'original_name',
|
|
89
|
+
ORIGINAL_TITLE: 'original_title',
|
|
90
|
+
OVERVIEW: 'overview',
|
|
91
|
+
PARTS: 'parts',
|
|
92
|
+
PLACE_OF_BIRTH: 'place_of_birth',
|
|
93
|
+
PLOT_KEYWORDS: 'plot_keywords',
|
|
94
|
+
PRODUCTION_CODE: 'production_code',
|
|
95
|
+
PRODUCTION_COMPANIES: 'production_companies',
|
|
96
|
+
PRODUCTION_COUNTRIES: 'production_countries',
|
|
97
|
+
RELEASES: 'releases',
|
|
98
|
+
REVENUE: 'revenue',
|
|
99
|
+
RUNTIME: 'runtime',
|
|
100
|
+
SEASON: 'season',
|
|
101
|
+
SEASON_NUMBER: 'season_number',
|
|
102
|
+
SEASON_REGULAR: 'season_regular',
|
|
103
|
+
SPOKEN_LANGUAGES: 'spoken_languages',
|
|
104
|
+
STATUS: 'status',
|
|
105
|
+
TAGLINE: 'tagline',
|
|
106
|
+
TITLE: 'title',
|
|
107
|
+
TRANSLATIONS: 'translations',
|
|
108
|
+
TVDB_ID: 'tvdb_id',
|
|
109
|
+
TVRAGE_ID: 'tvrage_id',
|
|
110
|
+
TYPE: 'type',
|
|
111
|
+
VIDEO: 'video',
|
|
112
|
+
VIDEOS: 'videos',
|
|
113
|
+
};
|
|
102
114
|
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/types/configuration.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/types/configuration.ts"],"names":[],"mappings":"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"}
|
package/dist/types/credits.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Image, Person } from './';
|
|
1
|
+
import { CountryCode, Image, Person } from './';
|
|
2
2
|
export interface CreditSeason {
|
|
3
3
|
air_date?: string;
|
|
4
4
|
poster_path?: string;
|
|
5
5
|
season_number?: number;
|
|
6
6
|
}
|
|
7
7
|
export interface Media {
|
|
8
|
-
|
|
8
|
+
id?: number;
|
|
9
9
|
name?: string;
|
|
10
10
|
first_air_date?: string;
|
|
11
11
|
vote_count?: number;
|
|
@@ -13,6 +13,8 @@ export interface Media {
|
|
|
13
13
|
vote_average?: number;
|
|
14
14
|
backdrop_path?: string;
|
|
15
15
|
genre_ids?: number[];
|
|
16
|
+
media_type: string;
|
|
17
|
+
adult: boolean;
|
|
16
18
|
original_name?: string;
|
|
17
19
|
origin_country?: string[];
|
|
18
20
|
poster_path?: string;
|
|
@@ -32,7 +34,7 @@ export interface CreditResponse {
|
|
|
32
34
|
person?: Person;
|
|
33
35
|
}
|
|
34
36
|
export interface Title {
|
|
35
|
-
iso_3166_1:
|
|
37
|
+
iso_3166_1: CountryCode;
|
|
36
38
|
title: string;
|
|
37
39
|
type: string;
|
|
38
40
|
}
|
|
@@ -80,7 +82,7 @@ export interface ImageCollection {
|
|
|
80
82
|
export interface Video {
|
|
81
83
|
id: string;
|
|
82
84
|
iso_639_1: string;
|
|
83
|
-
iso_3166_1:
|
|
85
|
+
iso_3166_1: CountryCode;
|
|
84
86
|
key: string;
|
|
85
87
|
name: string;
|
|
86
88
|
site: string;
|
package/dist/types/discover.d.ts
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
import { Movie, TV } from '.';
|
|
2
|
-
export type
|
|
2
|
+
export type MonetizationType = 'flatrate' | 'free' | 'ads' | 'rent' | 'buy';
|
|
3
|
+
export interface DiscoverQueryOptions {
|
|
4
|
+
language?: string;
|
|
5
|
+
sort_by?: SortOption;
|
|
6
|
+
page?: number;
|
|
7
|
+
'vote_average.gte'?: number;
|
|
8
|
+
'vote_count.gte'?: number;
|
|
9
|
+
'vote_count.lte'?: number;
|
|
10
|
+
'vote_average.lte'?: number;
|
|
11
|
+
with_watch_providers?: string;
|
|
12
|
+
watch_region?: string;
|
|
13
|
+
without_companies?: string;
|
|
14
|
+
with_watch_monetization_types?: MonetizationType;
|
|
15
|
+
'with_runtime.gte'?: number;
|
|
16
|
+
'with_runtime.lte'?: number;
|
|
17
|
+
with_genres?: string;
|
|
18
|
+
without_genres?: string;
|
|
19
|
+
with_original_language?: string;
|
|
20
|
+
without_keywords?: string;
|
|
21
|
+
with_keywords?: string;
|
|
22
|
+
with_companies?: string;
|
|
23
|
+
include_adult?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
26
|
+
region?: string;
|
|
27
|
+
certification_country?: string;
|
|
28
|
+
certification?: string;
|
|
29
|
+
'certification.lte'?: string;
|
|
30
|
+
'certification.gte'?: string;
|
|
31
|
+
include_adult?: boolean;
|
|
32
|
+
include_video?: boolean;
|
|
33
|
+
primary_release_year?: number;
|
|
34
|
+
'primary_release_date.gte'?: string;
|
|
35
|
+
'primary_release_date.lte'?: string;
|
|
36
|
+
'release_date.gte'?: string;
|
|
37
|
+
'release_date.lte'?: string;
|
|
38
|
+
with_release_type?: string;
|
|
39
|
+
year?: number;
|
|
40
|
+
with_cast?: string;
|
|
41
|
+
with_crew?: string;
|
|
42
|
+
with_people?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface TvShowQueryOptions extends DiscoverQueryOptions {
|
|
45
|
+
'air_date.gte'?: string;
|
|
46
|
+
'air_date.lte'?: string;
|
|
47
|
+
'first_air_date.gte'?: string;
|
|
48
|
+
'first_air_date.lte'?: string;
|
|
49
|
+
first_air_date_year?: number;
|
|
50
|
+
timezone?: string;
|
|
51
|
+
with_networks?: string;
|
|
52
|
+
include_null_first_air_dates?: boolean;
|
|
53
|
+
screened_theatrically?: boolean;
|
|
54
|
+
with_status?: string;
|
|
55
|
+
with_type?: string;
|
|
56
|
+
}
|
|
57
|
+
export type SortOption = 'first_air_date.asc' | 'first_air_date.desc' | 'popularity.asc' | 'popularity.desc' | 'release_date.asc' | 'release_date.desc' | 'revenue.asc' | 'revenue.desc' | 'primary_release_date.asc' | 'primary_release_date.desc' | 'original_title.asc' | 'original_title.desc' | 'vote_average.asc' | 'vote_average.desc' | 'vote_count.asc' | 'vote_count.desc';
|
|
3
58
|
export interface MovieDiscoverResult {
|
|
4
59
|
page: number;
|
|
5
60
|
results: Movie[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type KnownFor = MovieWithMediaType | TVWithMediaType;
|
|
|
34
34
|
export interface Person {
|
|
35
35
|
id: number;
|
|
36
36
|
name: string;
|
|
37
|
+
original_name: string;
|
|
37
38
|
known_for: KnownFor[];
|
|
38
39
|
profile_path: string;
|
|
39
40
|
adult: boolean;
|
|
@@ -71,6 +72,7 @@ export interface Company {
|
|
|
71
72
|
}
|
|
72
73
|
export interface TV {
|
|
73
74
|
id: number;
|
|
75
|
+
adult: boolean;
|
|
74
76
|
name: string;
|
|
75
77
|
first_air_date: string;
|
|
76
78
|
backdrop_path: string;
|
|
@@ -96,6 +98,13 @@ export interface ExternalIds {
|
|
|
96
98
|
facebook_id: string;
|
|
97
99
|
instagram_id: string;
|
|
98
100
|
twitter_id: string;
|
|
101
|
+
tvdb_id?: number;
|
|
102
|
+
freebase_mid?: string;
|
|
103
|
+
freebase_id?: string;
|
|
104
|
+
tvrage_id?: number;
|
|
105
|
+
wikidata_id: string;
|
|
106
|
+
tiktok_id?: string;
|
|
107
|
+
youtube_id?: string;
|
|
99
108
|
id: number;
|
|
100
109
|
}
|
|
101
110
|
export interface ProductionCompany {
|
|
@@ -105,7 +114,7 @@ export interface ProductionCompany {
|
|
|
105
114
|
origin_country: string;
|
|
106
115
|
}
|
|
107
116
|
export interface ProductionCountry {
|
|
108
|
-
iso_3166_1:
|
|
117
|
+
iso_3166_1: CountryCode;
|
|
109
118
|
name: string;
|
|
110
119
|
}
|
|
111
120
|
export interface SpokenLanguage {
|
|
@@ -119,7 +128,7 @@ export interface ContentRatings {
|
|
|
119
128
|
}
|
|
120
129
|
export interface ContentRatingsResult {
|
|
121
130
|
descriptor: unknown[];
|
|
122
|
-
iso_3166_1:
|
|
131
|
+
iso_3166_1: CountryCode;
|
|
123
132
|
rating: string;
|
|
124
133
|
}
|
|
125
134
|
export interface Recommendation {
|
|
@@ -148,9 +157,9 @@ export interface Review {
|
|
|
148
157
|
author: string;
|
|
149
158
|
author_details: AuthorDetails;
|
|
150
159
|
content: string;
|
|
151
|
-
created_at:
|
|
160
|
+
created_at: string;
|
|
152
161
|
id: string;
|
|
153
|
-
updated_at:
|
|
162
|
+
updated_at: string;
|
|
154
163
|
url: string;
|
|
155
164
|
}
|
|
156
165
|
export interface Reviews {
|
|
@@ -166,7 +175,7 @@ export interface TranslationData {
|
|
|
166
175
|
homepage: string;
|
|
167
176
|
}
|
|
168
177
|
export interface Translation {
|
|
169
|
-
iso_3166_1:
|
|
178
|
+
iso_3166_1: CountryCode;
|
|
170
179
|
iso_639_1: string;
|
|
171
180
|
name: string;
|
|
172
181
|
english_name: string;
|
|
@@ -191,3 +200,5 @@ export interface Images {
|
|
|
191
200
|
logos: Image[];
|
|
192
201
|
posters: Image[];
|
|
193
202
|
}
|
|
203
|
+
export declare const CountryCodes: readonly ["AE", "AR", "AT", "AU", "BE", "BG", "BO", "BR", "CA", "CH", "CL", "CO", "CR", "CV", "CZ", "DE", "DK", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GH", "GR", "GT", "HK", "HN", "HU", "ID", "IE", "IL", "IN", "IT", "JP", "LT", "LV", "MU", "MX", "MY", "MZ", "NL", "NO", "NZ", "PE", "PH", "PL", "PT", "PY", "RU", "SA", "SE", "SG", "SI", "SK", "TH", "TR", "TW", "UG", "US", "VE", "ZA"];
|
|
204
|
+
export type CountryCode = (typeof CountryCodes)[number];
|