@irfanshadikrishad/anilist 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,24 +39,24 @@ here `<client-id>` and `<client-secret>` should be replaced by the ones that you
39
39
 
40
40
  #### CLI Commands Overview
41
41
 
42
- | **Command** | **Options** | **Description** |
43
- | ------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------ |
44
- | **`login`** | `-i, --id` `-s, --secret` | Log in with your AniList credentials |
45
- | **`logout`** | _None_ | Log out from your AniList account |
46
- | **`me`** | _None_ | Display information about the logged-in user |
47
- | **`-V, --version`** | _None_ | Display the current version of the CLI |
48
- | **`-h, --help`** | _None_ | Display available commands and options |
49
- | **`trending`** <br> _(alias: `tr`)_ | `-c (default: 10)` | Fetch trending anime (default count is 10) |
50
- | **`popular`** <br> _(alias: `plr`)_ | `-c (default: 10)` | Fetch popular anime (default count is 10) |
51
- | **`user`** | `<username>` | Get information about a specific AniList user |
52
- | **`lists`** <br> _(alias: `ls`)_ | `-a, --anime` <br> `-m, --manga` | Fetch anime or manga lists of the logged-in user |
53
- | **`delete`** <br> _(alias: `del`)_ | `-a, --anime` <br> `-m, --manga` <br> `-ac, --activity` | Delete collections of anime, manga or activities |
54
- | **`upcoming`** <br> _(alias:`up`)_ | `-c (default: 10)` | Fetch upcoming anime (default count is 10) |
55
- | **`anime`** | `<anime-id>` | Get anime details by Anime Id |
56
- | **`search`** <br> _(alias:`srch`/`find`)_ | `<query>` <br> `-a, --anime` <br> `-m, --manga` <br> `-c (default: 10)` | Get anime/manga search results |
57
- | **`status`** <br> _(alias: `write`/`post`)_ | `<status>` | Write a status... (text/markdown/html) |
58
- | **`export`** <br> _(alias: `exp`)_ | `-a, --anime` <br> `-m, --manga` | Export anime or manga list |
59
- | **`import`** <br> _(alias: `imp`)_ | `-a, --anime` <br> `-m, --manga` | Import anime or manga list |
42
+ | **Command** | **Options** | **Description** |
43
+ | ------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------ |
44
+ | **`login`** | `-i, --id` `-s, --secret` | Log in with your AniList credentials |
45
+ | **`logout`** | _None_ | Log out from your AniList account |
46
+ | **`me`** | _None_ | Display information about the logged-in user |
47
+ | **`-V, --version`** | _None_ | Display the current version of the CLI |
48
+ | **`-h, --help`** | _None_ | Display available commands and options |
49
+ | **`trending`** <br> _(alias: `tr`)_ | `-c (default: 10)` | Fetch trending anime (default count is 10) |
50
+ | **`popular`** <br> _(alias: `plr`)_ | `-c (default: 10)` | Fetch popular anime (default count is 10) |
51
+ | **`user`** | `<username>` | Get information about a specific AniList user |
52
+ | **`lists`** <br> _(alias: `ls`)_ | `-a, --anime` <br> `-m, --manga` | Fetch anime or manga lists of the logged-in user |
53
+ | **`delete`** <br> _(alias: `del`)_ | `-a, --anime` <br> `-m, --manga` <br> `-ac, --activity` | Delete collections of anime, manga or activities |
54
+ | **`upcoming`** <br> _(alias:`up`)_ | `-c (default: 10)` | Fetch upcoming anime (default count is 10) |
55
+ | **`anime`** | `<anime-id>` | Get anime details by Anime Id |
56
+ | **`search`** <br> _(alias:`srch`/`find`)_ | `<query>` <br> `-a, --anime` <br> `-m, --manga` <br> `-c (default: 10)` | Get anime/manga search results |
57
+ | **`status`** <br> _(alias: `write`/`post`)_ | `<status>` | Write a status... (text/markdown/html) |
58
+ | **`export`** <br> _(alias: `exp`)_ | `-a, --anime` <br> `-m, --manga` | Export anime or manga list in JSON, CSV or XML (MyAnimeList) |
59
+ | **`import`** <br> _(alias: `imp`)_ | `-a, --anime` <br> `-m, --manga` | Import anime or manga list from exported JSON or MyAnimeList (XML) |
60
60
 
61
61
  #### Command Breakdown:
62
62
 
@@ -1,10 +1,23 @@
1
- declare function getAccessTokenFromUser(): Promise<any>;
2
- declare function storeAccessToken(token: string): Promise<void>;
3
- declare function retriveAccessToken(): Promise<string>;
4
- declare function anilistUserLogin(clientId: number, clientSecret: string): Promise<void>;
5
- declare function currentUserInfo(): Promise<any>;
6
- declare function isLoggedIn(): Promise<boolean>;
7
- declare function logoutUser(): Promise<void>;
8
- declare function currentUsersId(): Promise<any>;
9
- declare function currentUsersName(): Promise<any>;
10
- export { anilistUserLogin, currentUserInfo, currentUsersId, currentUsersName, getAccessTokenFromUser, isLoggedIn, logoutUser, retriveAccessToken, storeAccessToken, };
1
+ declare class Auth {
2
+ /**
3
+ * Get access-token from user
4
+ */
5
+ static GetAccessToken(): Promise<any>;
6
+ static StoreAccessToken(token: string): Promise<void>;
7
+ static RetriveAccessToken(): Promise<string>;
8
+ static Login(clientId: number, clientSecret: string): Promise<void>;
9
+ static Myself(): Promise<any>;
10
+ static isLoggedIn(): Promise<boolean>;
11
+ static Logout(): Promise<void>;
12
+ static MyUserId(): Promise<any>;
13
+ static MyUserName(): Promise<any>;
14
+ static DeleteMyActivities(): Promise<void>;
15
+ static DeleteMyAnimeList(): Promise<void>;
16
+ static DeleteAnimeById(id: number, title?: any): Promise<void>;
17
+ static DeleteMyMangaList(): Promise<void>;
18
+ static DeleteMangaById(id: number, title?: any): Promise<void>;
19
+ static Write(status: string): Promise<void>;
20
+ static callAnimeImporter(): Promise<void>;
21
+ static callMangaImporter(): Promise<void>;
22
+ }
23
+ export { Auth };