@lightweight-clients/jikan-api-lightweight-client
Version:
Lightweight Jikan API client. Exports only minimal Fetch call. Fully compatible with AWS LLRT.
603 lines • 15.1 kB
JavaScript
// noinspection JSUnusedGlobalSymbols
import { client_fetch } from './core';
/**
* Returns complete anime resource data
*/
export const getAnimeFullById = async (id) => {
return await client_fetch(`anime/${id}/full`);
};
/**
* Returns anime resource
*/
export const getAnimeById = async (id) => {
return await client_fetch(`anime/${id}`);
};
/**
* Returns anime characters resource
*/
export const getAnimeCharacters = async (id) => {
return await client_fetch(`anime/${id}/characters`);
};
/**
* Returns anime staff resource
*/
export const getAnimeStaff = async (id) => {
return await client_fetch(`anime/${id}/staff`);
};
/**
* Returns a list of anime episodes
*/
export const getAnimeEpisodes = async (id) => {
return await client_fetch(`anime/${id}/episodes`);
};
/**
* Returns a single anime episode resource
*/
export const getAnimeEpisodeById = async (id, episode) => {
return await client_fetch(`anime/${id}/episodes/${episode}`);
};
/**
* Returns a list of news articles related to the entry
*/
export const getAnimeNews = async (id) => {
return await client_fetch(`anime/${id}/news`);
};
/**
* Returns a list of forum topics related to the entry
*/
export const getAnimeForum = async (id, args) => {
return await client_fetch(`anime/${id}/forum`, args);
};
/**
* Returns videos related to the entry
*/
export const getAnimeVideos = async (id) => {
return await client_fetch(`anime/${id}/videos`);
};
/**
* Returns episode videos related to the entry
*/
export const getAnimeVideosEpisodes = async (id) => {
return await client_fetch(`anime/${id}/videos/episodes`);
};
/**
* Returns pictures related to the entry
*/
export const getAnimePictures = async (id) => {
return await client_fetch(`anime/${id}/pictures`);
};
/**
* Returns anime statistics
*/
export const getAnimeStatistics = async (id) => {
return await client_fetch(`anime/${id}/statistics`);
};
/**
* Returns anime statistics
*/
export const getAnimeMoreInfo = async (id) => {
return await client_fetch(`anime/${id}/moreinfo`);
};
/**
* Returns anime recommendations
*/
export const getAnimeRecommendations = async (id) => {
return await client_fetch(`anime/${id}/recommendations`);
};
/**
* Returns a list of users who have added/updated/removed the entry on their list
*/
export const getAnimeUserUpdates = async (id) => {
return await client_fetch(`anime/${id}/userupdates`);
};
/**
* Returns anime reviews
*/
export const getAnimeReviews = async (id) => {
return await client_fetch(`anime/${id}/reviews`);
};
/**
* Returns anime relations
*/
export const getAnimeRelations = async (id) => {
return await client_fetch(`anime/${id}/relations`);
};
/**
* Returns anime themes
*/
export const getAnimeThemes = async (id) => {
return await client_fetch(`anime/${id}/themes`);
};
/**
* Returns anime external links
*/
export const getAnimeExternal = async (id) => {
return await client_fetch(`anime/${id}/external`);
};
/**
* Returns anime streaming links
*/
export const getAnimeStreaming = async (id) => {
return await client_fetch(`anime/${id}/streaming`);
};
/**
* Returns complete character resource data
*/
export const getCharacterFullById = async (id) => {
return await client_fetch(`characters/${id}/full`);
};
/**
* Returns character resource
*/
export const getCharacterById = async (id) => {
return await client_fetch(`characters/${id}`);
};
/**
* Returns anime that character is in
*/
export const getCharacterAnime = async (id) => {
return await client_fetch(`characters/${id}/anime`);
};
/**
* Returns manga that character is in
*/
export const getCharacterManga = async (id) => {
return await client_fetch(`characters/${id}/manga`);
};
/**
* Returns the character's voice actors
*/
export const getCharacterVoiceActors = async (id) => {
return await client_fetch(`characters/${id}/voices`);
};
/**
* Returns pictures related to the entry
*/
export const getCharacterPictures = async (id) => {
return await client_fetch(`characters/${id}/pictures`);
};
/**
* Returns Club Resource
*/
export const getClubsById = async (id) => {
return await client_fetch(`clubs/${id}`);
};
/**
* Returns Club Members Resource
*/
export const getClubMembers = async (id) => {
return await client_fetch(`clubs/${id}/members`);
};
/**
* Returns Club Staff
*/
export const getClubStaff = async (id) => {
return await client_fetch(`clubs/${id}/staff`);
};
/**
* Returns Club Relations
*/
export const getClubRelations = async (id) => {
return await client_fetch(`clubs/${id}/relations`);
};
/**
* Returns entry genres, explicit_genres, themes and demographics
*/
export const getAnimeGenres = async (args) => {
return await client_fetch(`genres/anime`, args);
};
/**
* Returns entry genres, explicit_genres, themes and demographics
*/
export const getMangaGenres = async (args) => {
return await client_fetch(`genres/manga`, args);
};
/**
* Returns magazines collection
*/
export const getMagazines = async (args) => {
return await client_fetch(`magazines`, args);
};
/**
* Returns complete manga resource data
*/
export const getMangaFullById = async (id) => {
return await client_fetch(`manga/${id}/full`);
};
/**
* Returns pictures related to the entry
*/
export const getMangaById = async (id) => {
return await client_fetch(`manga/${id}`);
};
/**
* Returns manga characters resource
*/
export const getMangaCharacters = async (id) => {
return await client_fetch(`manga/${id}/characters`);
};
/**
* Returns a list of manga news topics
*/
export const getMangaNews = async (id) => {
return await client_fetch(`manga/${id}/news`);
};
/**
* Returns a list of manga forum topics
*/
export const getMangaTopics = async (id, args) => {
return await client_fetch(`manga/${id}/forum`, args);
};
/**
* Returns a list of manga pictures
*/
export const getMangaPictures = async (id) => {
return await client_fetch(`manga/${id}/pictures`);
};
/**
* Returns anime statistics
*/
export const getMangaStatistics = async (id) => {
return await client_fetch(`manga/${id}/statistics`);
};
/**
* Returns manga moreinfo
*/
export const getMangaMoreInfo = async (id) => {
return await client_fetch(`manga/${id}/moreinfo`);
};
/**
* Returns manga recommendations
*/
export const getMangaRecommendations = async (id) => {
return await client_fetch(`manga/${id}/recommendations`);
};
/**
* Returns manga user updates
*/
export const getMangaUserUpdates = async (id) => {
return await client_fetch(`manga/${id}/userupdates`);
};
/**
* Returns manga reviews
*/
export const getMangaReviews = async (id) => {
return await client_fetch(`manga/${id}/reviews`);
};
/**
* Returns manga relations
*/
export const getMangaRelations = async (id) => {
return await client_fetch(`manga/${id}/relations`);
};
/**
* Returns manga external links
*/
export const getMangaExternal = async (id) => {
return await client_fetch(`manga/${id}/external`);
};
/**
* Returns complete character resource data
*/
export const getPersonFullById = async (id) => {
return await client_fetch(`people/${id}/full`);
};
/**
* Returns pictures related to the entry
*/
export const getPersonById = async (id) => {
return await client_fetch(`people/${id}`);
};
/**
* Returns person's anime staff positions
*/
export const getPersonAnime = async (id) => {
return await client_fetch(`people/${id}/anime`);
};
/**
* Returns person's voice acting roles
*/
export const getPersonVoices = async (id) => {
return await client_fetch(`people/${id}/voices`);
};
/**
* Returns person's published manga works
*/
export const getPersonManga = async (id) => {
return await client_fetch(`people/${id}/manga`);
};
/**
* Returns a list of pictures of the person
*/
export const getPersonPictures = async (id) => {
return await client_fetch(`people/${id}/pictures`);
};
/**
* Returns producer resource
*/
export const getProducerById = async (id) => {
return await client_fetch(`producers/${id}`);
};
/**
* Returns producer resource
*/
export const getProducerFullById = async (id) => {
return await client_fetch(`producers/${id}/full`);
};
/**
* Returns producer's external links
*/
export const getProducerExternal = async (id) => {
return await client_fetch(`producers/${id}/external`);
};
/**
* Returns a random anime resource
*/
export const getRandomAnime = async () => {
return await client_fetch(`random/anime`);
};
/**
* Returns a random manga resource
*/
export const getRandomManga = async () => {
return await client_fetch(`random/manga`);
};
/**
* Returns a random character resource
*/
export const getRandomCharacters = async () => {
return await client_fetch(`random/characters`);
};
/**
* Returns a random person resource
*/
export const getRandomPeople = async () => {
return await client_fetch(`random/people`);
};
/**
* Returns a random user profile resource
*/
export const getRandomUsers = async () => {
return await client_fetch(`random/users`);
};
/**
* Returns recent anime recommendations
*/
export const getRecentAnimeRecommendations = async () => {
return await client_fetch(`recommendations/anime`);
};
/**
* Returns recent manga recommendations
*/
export const getRecentMangaRecommendations = async () => {
return await client_fetch(`recommendations/manga`);
};
/**
* Returns recent anime reviews
*/
export const getRecentAnimeReviews = async () => {
return await client_fetch(`reviews/anime`);
};
/**
* Returns recent manga reviews
*/
export const getRecentMangaReviews = async () => {
return await client_fetch(`reviews/manga`);
};
/**
* Returns weekly schedule
*/
export const getSchedules = async (args) => {
return await client_fetch(`schedules`, args);
};
/**
* Returns search results for anime
*/
export const getAnimeSearch = async (args) => {
return await client_fetch(`anime`, args);
};
/**
* Returns search results for manga
*/
export const getMangaSearch = async (args) => {
return await client_fetch(`manga`, args);
};
/**
* Returns search results for people
*/
export const getPeopleSearch = async (args) => {
return await client_fetch(`people`, args);
};
/**
* Returns search results for characters
*/
export const getCharactersSearch = async (args) => {
return await client_fetch(`characters`, args);
};
/**
* Returns search results for users
*/
export const getUsersSearch = async (args) => {
return await client_fetch(`users`, args);
};
/**
* Returns username by ID search
*/
export const getUserById = async (id) => {
return await client_fetch(`users/userbyid/${id}`);
};
/**
* Returns search results for clubs
*/
export const getClubsSearch = async (args) => {
return await client_fetch(`clubs`, args);
};
/**
* Returns producers collection
*/
export const getProducers = async (args) => {
return await client_fetch(`producers`, args);
};
/**
* Returns current seasonal anime
*/
export const getSeasonNow = async (args) => {
return await client_fetch(`seasons/now`, args);
};
/**
* Returns seasonal anime
*/
export const getSeason = async (year, season, args) => {
return await client_fetch(`seasons/${year}/${season}`, args);
};
/**
* Returns available list of seasons
*/
export const getSeasonsList = async () => {
return await client_fetch(`seasons`);
};
/**
* Returns upcoming season's anime
*/
export const getSeasonUpcoming = async (args) => {
return await client_fetch(`seasons/upcoming`, args);
};
/**
* Returns top anime
*/
export const getTopAnime = async (args) => {
return await client_fetch(`top/anime`, args);
};
/**
* Returns top manga
*/
export const getTopManga = async (args) => {
return await client_fetch(`top/manga`, args);
};
/**
* Returns top people
*/
export const getTopPeople = async () => {
return await client_fetch(`top/people`);
};
/**
* Returns top characters
*/
export const getTopCharacters = async () => {
return await client_fetch(`top/characters`);
};
/**
* Returns top reviews
*/
export const getTopReviews = async (args) => {
return await client_fetch(`top/reviews`, args);
};
/**
* Returns complete user resource data
*/
export const getUserFullProfile = async (username) => {
return await client_fetch(`users/${username}/full`);
};
/**
* Returns user profile
*/
export const getUserProfile = async (username) => {
return await client_fetch(`users/${username}`);
};
/**
* Returns user statistics
*/
export const getUserStatistics = async (username) => {
return await client_fetch(`users/${username}/statistics`);
};
/**
* Returns user favorites
*/
export const getUserFavorites = async (username) => {
return await client_fetch(`users/${username}/favorites`);
};
/**
* Returns user updates
*/
export const getUserUpdates = async (username) => {
return await client_fetch(`users/${username}/userupdates`);
};
/**
* Returns user about in raw HTML
*/
export const getUserAbout = async (username) => {
return await client_fetch(`users/${username}/about`);
};
/**
* Returns user history (past 30 days)
*/
export const getUserHistory = async (username, args) => {
return await client_fetch(`users/${username}/history`, args);
};
/**
* Returns user friends
*/
export const getUserFriends = async (username) => {
return await client_fetch(`users/${username}/friends`);
};
/**
* Returns user anime list
*/
export const getUserAnimelist = async (username, args) => {
return await client_fetch(`users/${username}/animelist`, args);
};
/**
* Returns user manga list
*/
export const getUserMangaList = async (username, args) => {
return await client_fetch(`users/${username}/mangalist`, args);
};
/**
* Returns user reviews
*/
export const getUserReviews = async (username) => {
return await client_fetch(`users/${username}/reviews`);
};
/**
* Returns Recent Anime Recommendations
*/
export const getUserRecommendations = async (username) => {
return await client_fetch(`users/${username}/recommendations`);
};
/**
* Returns user clubs
*/
export const getUserClubs = async (username) => {
return await client_fetch(`users/${username}/clubs`);
};
/**
* Returns user's external links
*/
export const getUserExternal = async (username) => {
return await client_fetch(`users/${username}/external`);
};
/**
* Returns Recently Added Episodes
*/
export const getWatchRecentEpisodes = async () => {
return await client_fetch(`watch/episodes`);
};
/**
* Returns Popular Episodes
*/
export const getWatchPopularEpisodes = async () => {
return await client_fetch(`watch/episodes/popular`);
};
/**
* Returns Recently Added Promotional Videos
*/
export const getWatchRecentPromos = async () => {
return await client_fetch(`watch/promos`);
};
/**
* Returns Popular Promotional Videos
*/
export const getWatchPopularPromos = async () => {
return await client_fetch(`watch/promos/popular`);
};
//# sourceMappingURL=client.js.map