added certifactions and configurations, util function for constructing image paths
This commit is contained in:
114
src/types/configuration.ts
Normal file
114
src/types/configuration.ts
Normal file
@@ -0,0 +1,114 @@
|
||||
|
||||
export interface Images {
|
||||
base_url: string;
|
||||
secure_base_url: string;
|
||||
backdrop_sizes: BackdropSizes[];
|
||||
logo_sizes: LogoSizes[];
|
||||
poster_sizes: PosterSizes[];
|
||||
profile_sizes: ProfileSizes[];
|
||||
still_sizes: StillSizes[];
|
||||
}
|
||||
|
||||
export interface Configuration {
|
||||
images: Images;
|
||||
change_keys: ChangeKeys[];
|
||||
}
|
||||
|
||||
|
||||
export const enum BackdropSizes {
|
||||
W300 = 'w300',
|
||||
W780 = 'w780',
|
||||
W1280 = 'w1280',
|
||||
ORIGINAL = 'original'
|
||||
}
|
||||
|
||||
export const enum LogoSizes {
|
||||
W45= 'w45',
|
||||
W92= 'w92',
|
||||
W154= 'w154',
|
||||
W185= 'w185',
|
||||
W300 = 'w300',
|
||||
W500 = 'w500',
|
||||
ORIGINAL = 'original'
|
||||
}
|
||||
|
||||
export const enum PosterSizes {
|
||||
W92= 'w92',
|
||||
W154= 'w154',
|
||||
W185='w185',
|
||||
W300 = 'w300',
|
||||
W500 = 'w500',
|
||||
W780 = 'w780',
|
||||
ORIGINAL = 'original'
|
||||
}
|
||||
|
||||
export const enum ProfileSizes {
|
||||
W45 = 'w45',
|
||||
W185 = 'w185',
|
||||
W632 = 'w632',
|
||||
ORIGINAL = 'original'
|
||||
}
|
||||
|
||||
|
||||
export const enum StillSizes {
|
||||
W92= 'w92',
|
||||
W185 = 'w185',
|
||||
W300 = 'w300',
|
||||
ORIGINAL = 'original'
|
||||
}
|
||||
|
||||
export const enum ChangeKeys {
|
||||
ADULT = 'adult',
|
||||
AIR_DATE = 'air_date',
|
||||
ALSO_KNOWN_AS = 'also_known_as',
|
||||
ALTERNATIVE_TITLES = 'alternative_titles',
|
||||
BIOGRAPHY = 'biography',
|
||||
BIRTHDAY = 'birthday',
|
||||
BUDGET = 'budget',
|
||||
CAST = 'cast',
|
||||
CERTIFICATIONS = 'certifications',
|
||||
CHARACTER_NAMES = 'character_names',
|
||||
CREATED_BY = 'created_by',
|
||||
CREW = 'crew',
|
||||
DEATHDAY = 'deathday',
|
||||
EPISODE = 'episode',
|
||||
EPISODE_NUMBER = 'episode_number',
|
||||
EPISODE_RUN_TIME = 'episode_run_time',
|
||||
FREEBASE_ID = 'freebase_id',
|
||||
FREEBASE_MID = 'freebase_mid',
|
||||
GENERAL = 'general',
|
||||
GENRES = 'genres',
|
||||
GUEST_STARS = 'guest_stars',
|
||||
HOMEPAGE = 'homepage',
|
||||
IMAGES = 'images',
|
||||
IMDB_ID = 'imdb_id',
|
||||
LANGUAGES = 'languages',
|
||||
NAME = 'name',
|
||||
NETWORK = 'network',
|
||||
ORIGIN_COUNTRY = 'origin_country',
|
||||
ORIGINAL_NAME = 'original_name',
|
||||
ORIGINAL_TITLE = 'original_title',
|
||||
OVERVIEW = 'overview',
|
||||
PARTS = 'parts',
|
||||
PLACE_OF_BIRTH = 'place_of_birth',
|
||||
PLOT_KEYWORDS = 'plot_keywords',
|
||||
PRODUCTION_CODE = 'production_code',
|
||||
PRODUCTION_COMPANIES = 'production_companies',
|
||||
PRODUCTION_COUNTRIES = 'production_countries',
|
||||
RELEASES = 'releases',
|
||||
REVENUE = 'revenue',
|
||||
RUNTIME = 'runtime',
|
||||
SEASON = 'season',
|
||||
SEASON_NUMBER = 'season_number',
|
||||
SEASON_REGULAR = 'season_regular',
|
||||
SPOKEN_LANGUAGES = 'spoken_languages',
|
||||
STATUS = 'status',
|
||||
TAGLINE = 'tagline',
|
||||
TITLE = 'title',
|
||||
TRANSLATIONS = 'translations',
|
||||
TVDB_ID = 'tvdb_id',
|
||||
TVRAGE_ID = 'tvrage_id',
|
||||
TYPE = 'type',
|
||||
VIDEO = 'video',
|
||||
VIDEOS = 'videos'
|
||||
}
|
||||
Reference in New Issue
Block a user