10 Commits

Author SHA1 Message Date
Blake Joynes
e723b2f8fa update const enums 2024-03-30 15:49:47 -04:00
Blake
3d3ec34fc5 Merge pull request #52 from blakejoy/bump-1.7.1
Update package.json
2024-03-11 21:05:00 -04:00
Blake
00709c1d28 Update package.json 2024-03-11 21:04:51 -04:00
Blake
9c14fb80fd Merge pull request #51 from blakejoy/v-1.7.0
Update package.json
2024-03-10 14:24:04 -04:00
Blake
c56ecbef47 Update package.json 2024-03-10 14:23:57 -04:00
Blake
876d2cac0f Merge pull request #49 from pypp/feat/undocumented-backdrop-size
Add w500 size to backdrop
2024-03-10 04:10:01 -04:00
Blake
9dae7144b2 Merge pull request #50 from pypp/feat/trending-page-options
Add pageOption to the trending endpoint
2024-03-10 04:09:51 -04:00
Netanel Henya
f99dbac1d2 feat: add pageOption to the trending endpoint 2024-02-23 11:36:05 +02:00
Netanel Henya
43f5d16dc3 feat: added w500 size to backdrop, this size is not in the officel documentation but it still exists 2024-02-23 08:16:29 +02:00
Blake
682cf48cb0 Merge pull request #48 from blakejoy/chore/add-error-res
Feat: Add error response.
2024-01-15 12:02:07 -05:00
3 changed files with 10 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "tmdb-ts",
"version": "1.6.1",
"version": "1.8.0",
"description": "TMDB v3 library wrapper",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -3,6 +3,7 @@ import {
TimeWindow,
TrendingResults,
LanguageOption,
PageOption,
} from '../types';
import { BaseEndpoint } from './base';
@@ -14,7 +15,7 @@ export class TrendingEndpoint extends BaseEndpoint {
async trending<T extends TrendingMediaType>(
mediaType: T,
timeWindow: TimeWindow,
options?: LanguageOption
options?: LanguageOption & PageOption
): Promise<TrendingResults<T>> {
return await this.api.get<TrendingResults<T>>(
`/trending/${mediaType}/${timeWindow}`,

View File

@@ -13,14 +13,15 @@ export interface Configuration {
change_keys: ChangeKeys[];
}
export const enum BackdropSizes {
export enum BackdropSizes {
W300 = 'w300',
W500 = 'w500',
W780 = 'w780',
W1280 = 'w1280',
ORIGINAL = 'original',
}
export const enum LogoSizes {
export enum LogoSizes {
W45 = 'w45',
W92 = 'w92',
W154 = 'w154',
@@ -30,7 +31,7 @@ export const enum LogoSizes {
ORIGINAL = 'original',
}
export const enum PosterSizes {
export enum PosterSizes {
W92 = 'w92',
W154 = 'w154',
W185 = 'w185',
@@ -40,21 +41,21 @@ export const enum PosterSizes {
ORIGINAL = 'original',
}
export const enum ProfileSizes {
export enum ProfileSizes {
W45 = 'w45',
W185 = 'w185',
W632 = 'w632',
ORIGINAL = 'original',
}
export const enum StillSizes {
export enum StillSizes {
W92 = 'w92',
W185 = 'w185',
W300 = 'w300',
ORIGINAL = 'original',
}
export const enum ChangeKeys {
export enum ChangeKeys {
ADULT = 'adult',
AIR_DATE = 'air_date',
ALSO_KNOWN_AS = 'also_known_as',