@surfskip/api-types
Advanced tools
Comparing version 0.34.1 to 0.35.0
@@ -32,3 +32,3 @@ /// <reference types="mongoose/types/aggregate" /> | ||
import { MessageWithUser } from "./database/Message"; | ||
import { Race, Sport, SportTeam, SPORTS, Movie, Show, ShowSeason, Offer } from "./tmdbApi"; | ||
import { PageInfo, Race, Sport, SportTeam, SPORTS, Movie, Show, ShowSeason, Offer } from "./tmdbApi"; | ||
declare const app: Elysia<"", { | ||
@@ -432,3 +432,3 @@ request: { | ||
readonly success: false; | ||
readonly message: "User not found."; | ||
readonly message: "Please send another reset request."; | ||
} | { | ||
@@ -751,2 +751,3 @@ success: boolean; | ||
platforms?: string | undefined; | ||
afterCursor?: string | undefined; | ||
sort: "popular" | "recent"; | ||
@@ -758,3 +759,6 @@ }; | ||
success: boolean; | ||
result: Movie[]; | ||
result: { | ||
movies: Movie[]; | ||
page_info: PageInfo; | ||
}; | ||
}>; | ||
@@ -825,2 +829,3 @@ }; | ||
language?: string | undefined; | ||
afterCursor?: string | undefined; | ||
sort: "popular" | "recent"; | ||
@@ -832,3 +837,6 @@ }; | ||
success: boolean; | ||
result: Show[]; | ||
result: { | ||
shows: Show[]; | ||
page_info: PageInfo; | ||
}; | ||
}>; | ||
@@ -941,2 +949,2 @@ }; | ||
}; | ||
export type { User, UserAvatar, UserWithAvatar, ChatGroup, MessageWithUser, Movie, Offer, Show, ShowSeason, Sport, SportTeam, SPORTS, Race }; | ||
export type { User, UserAvatar, UserWithAvatar, ChatGroup, MessageWithUser, Movie, Offer, Show, ShowSeason, Sport, SportTeam, SPORTS, Race, PageInfo }; |
@@ -35,4 +35,13 @@ export interface Offer { | ||
} | ||
export interface PageInfo { | ||
"has_next_page": boolean; | ||
"has_previous_page": boolean; | ||
"start_cursor": string; | ||
"end_cursor": string; | ||
} | ||
export declare function getMoviePlatforms(countryCode: string): Promise<Platform[]>; | ||
export declare function getMovies(sortBy: "popular" | "recent", country?: string, genres?: string, platforms?: string): Promise<Movie[]>; | ||
export declare function getMovies(sortBy: "popular" | "recent", country?: string, genres?: string, platforms?: string, afterCursor?: string): Promise<{ | ||
movies: Movie[]; | ||
page_info: PageInfo; | ||
}>; | ||
export declare function searchMovies(query: string, platforms?: string, genres?: string): Promise<Movie[]>; | ||
@@ -108,5 +117,8 @@ export declare function getMovie(id: string, country?: string): Promise<Movie>; | ||
}>; | ||
export declare function getShows(sortBy: "popular" | "recent", country?: string, genres?: string, platforms?: string, language?: string): Promise<Show[]>; | ||
export declare function getShows(sortBy: "popular" | "recent", country?: string, genres?: string, platforms?: string, language?: string, afterCursor?: string): Promise<{ | ||
shows: Show[]; | ||
page_info: PageInfo; | ||
}>; | ||
export declare function searchShows(query: string, platforms?: string, genres?: string): Promise<Show[]>; | ||
export declare function getShow(id: string, country?: string): Promise<Show>; | ||
export {}; |
{ | ||
"name": "@surfskip/api-types", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "Gives up-to-date typings for our SurfSkip API to use with @elysiajs/eden to provide a full client with type safety.", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
60266
1476