diff --git a/src/endpoints/animes.ts b/src/endpoints/animes.ts index 1b32ac4..3b46b6d 100644 --- a/src/endpoints/animes.ts +++ b/src/endpoints/animes.ts @@ -30,6 +30,7 @@ export interface AnimesParams { duration?: AnimeDuration; rating?: AnimeRating; genre?: string; + genre_v2?: string; studio?: string; franchise?: string; censored?: boolean; diff --git a/src/endpoints/mangas.ts b/src/endpoints/mangas.ts index 555cdc3..eaf0017 100644 --- a/src/endpoints/mangas.ts +++ b/src/endpoints/mangas.ts @@ -24,6 +24,7 @@ export interface MangasParams { season?: string; score?: number; genre?: string; + genre_v2?: string; publisher?: string; franchise?: string; censored?: boolean; diff --git a/src/endpoints/users.ts b/src/endpoints/users.ts index ef48040..a16fe0d 100644 --- a/src/endpoints/users.ts +++ b/src/endpoints/users.ts @@ -22,6 +22,12 @@ export interface UsersListParams { limit?: number; } +export interface FriendsListParams { + id: UserId; + page?: number; + limit?: number; +} + export interface UsersByIdParams { id: number | string; is_nickname?: boolean; @@ -57,7 +63,7 @@ export interface UsersHistoryParams { * Users * @param methods */ -export const users = ({ get }: RequestMethods) => { +export const users = ({ get, post }: RequestMethods) => { /** * List users * @param params @@ -89,14 +95,17 @@ export const users = ({ get }: RequestMethods) => { * Sign out from an account * @param params */ - const signOut = (): Promise => get(`/users/sign_out`, {}); + const signOut = (): Promise => post(`/users/sign_out`, {}); /** * List user's friends * @param params */ - const friends = ({ id }: Id): Promise => - get(`/users/${id}/friends`, {}); + const friends = ({ + id, + ...params + }: FriendsListParams): Promise => + get(`/users/${id}/friends`, params); /** * List user's clubs