Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: meta/anilist fetchStaffById #567

Merged
merged 3 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import MangaParser from './manga-parser';
import LightNovelParser from './lightnovel-parser';
import MovieParser from './movie-parser';
import NewsParser from './news-parser';
import { IProviderStats, ISearch, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, LibgenBook, StreamingServers, MediaStatus, SubOrSub, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, GetComicsComics, ComicRes, IMangaChapterPage, TvType, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, Genres, INewsFeed, Topics, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig } from './types';
import { IProviderStats, ISearch, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, LibgenBook, StreamingServers, MediaStatus, SubOrSub, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, GetComicsComics, ComicRes, IMangaChapterPage, TvType, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, Genres, INewsFeed, Topics, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig, IStaff } from './types';
import { LibgenBookObject, GetComicsComicsObject } from './type-objects';
export { BaseProvider, IProviderStats, BaseParser, AnimeParser, BookParser, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, VideoExtractor, LibgenBook, LibgenBookObject, StreamingServers, MediaStatus, SubOrSub, LightNovelParser, MangaParser, NewsParser, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, ComicParser, GetComicsComics, GetComicsComicsObject, ComicRes, ISearch, IMangaChapterPage, TvType, MovieParser, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, Genres, INewsFeed, Topics, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig, };
export { BaseProvider, IProviderStats, BaseParser, AnimeParser, BookParser, IAnimeEpisode, IAnimeInfo, IAnimeResult, IEpisodeServer, IVideo, VideoExtractor, LibgenBook, LibgenBookObject, StreamingServers, MediaStatus, SubOrSub, LightNovelParser, MangaParser, NewsParser, IMangaResult, IMangaChapter, IMangaInfo, ILightNovelResult, ILightNovelInfo, ILightNovelChapter, ILightNovelChapterContent, ComicParser, GetComicsComics, GetComicsComicsObject, ComicRes, ISearch, IMangaChapterPage, TvType, MovieParser, IMovieEpisode, IMovieInfo, ISource, ISubtitle, IMovieResult, Intro, Genres, INewsFeed, Topics, INewsInfo, FuzzyDate, ITitle, MediaFormat, ProxyConfig, IStaff, };
2 changes: 1 addition & 1 deletion dist/models/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions dist/models/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,31 @@ export interface ProxyConfig {
*/
rotateInterval?: number;
}
export interface IRoles {
id: string;
title: ITitle;
type?: string;
image: {
extraLarge?: string;
large?: string;
medium?: string;
};
color?: string;
}
export interface IStaff {
id: string;
name: {
first?: string;
last?: string;
native?: string;
full?: string;
};
image?: {
large?: string;
medium?: string;
};
description?: string;
siteUrl?: string;
roles?: IRoles[];
}
export {};
6 changes: 3 additions & 3 deletions dist/providers/meta/anilist.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosAdapter } from 'axios';
import { AnimeParser, ISearch, IAnimeInfo, IAnimeResult, ISource, IAnimeEpisode, IEpisodeServer, Genres, MangaParser, IMangaChapterPage, IMangaInfo, IMangaResult, ProxyConfig } from '../../models';
import { AnimeParser, ISearch, IAnimeInfo, IAnimeResult, ISource, IAnimeEpisode, IEpisodeServer, Genres, MangaParser, IMangaChapterPage, IMangaInfo, IMangaResult, ProxyConfig, IStaff } from '../../models';
declare class Anilist extends AnimeParser {
proxyConfig?: ProxyConfig | undefined;
readonly name = "Anilist";
Expand Down Expand Up @@ -113,11 +113,11 @@ declare class Anilist extends AnimeParser {
*/
fetchAnilistInfoById: (id: string) => Promise<IAnimeInfo>;
/**
* TODO: finish this (got lazy)
* To get Staff details by anilistId
* @param id staff id from anilist
*
*/
fetchStaffById: (id: number) => Promise<never>;
fetchStaffById: (id: number) => Promise<IStaff>;
/**
*
* @param id character id from anilist
Expand Down
43 changes: 41 additions & 2 deletions dist/providers/meta/anilist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/providers/meta/anilist.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/providers/movies/dramacool.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading