@irfanshadikrishad/anilist 1.0.11 → 1.1.0-forbidden.7

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.
@@ -1,23 +1,39 @@
1
+ import { MediaTitle, User } from "./types.js";
1
2
  declare class Auth {
2
3
  /**
3
4
  * Get access-token from user
4
5
  */
5
- static GetAccessToken(): Promise<any>;
6
+ static GetAccessToken(): Promise<string | null>;
6
7
  static StoreAccessToken(token: string): Promise<void>;
7
- static RetriveAccessToken(): Promise<string>;
8
+ static RetriveAccessToken(): Promise<string | null>;
8
9
  static Login(clientId: number, clientSecret: string): Promise<void>;
9
- static Myself(): Promise<any>;
10
+ static Myself(): Promise<User>;
10
11
  static isLoggedIn(): Promise<boolean>;
11
12
  static Logout(): Promise<void>;
12
- static MyUserId(): Promise<any>;
13
- static MyUserName(): Promise<any>;
13
+ static MyUserId(): Promise<number>;
14
+ static MyUserName(): Promise<string>;
14
15
  static DeleteMyActivities(): Promise<void>;
15
16
  static DeleteMyAnimeList(): Promise<void>;
16
- static DeleteAnimeById(id: number, title?: any): Promise<void>;
17
+ static DeleteAnimeById(id: number, title?: MediaTitle): Promise<void>;
17
18
  static DeleteMyMangaList(): Promise<void>;
18
- static DeleteMangaById(id: number, title?: any): Promise<void>;
19
+ static DeleteMangaById(id: number, title?: MediaTitle): Promise<void>;
19
20
  static Write(status: string): Promise<void>;
20
21
  static callAnimeImporter(): Promise<void>;
21
22
  static callMangaImporter(): Promise<void>;
23
+ private static LikeFollowing;
24
+ private static LikeGlobal;
25
+ private static LikeSpecificUser;
26
+ static LikeFollowingActivityV2(perPage: number): Promise<void>;
27
+ static AutoLike(): Promise<void>;
22
28
  }
23
- export { Auth };
29
+ declare class Social {
30
+ /**
31
+ * Follow the users that follows you
32
+ */
33
+ static follow(): Promise<void>;
34
+ /**
35
+ * Unfollow the users thats not following you
36
+ */
37
+ static unfollow(): Promise<void>;
38
+ }
39
+ export { Auth, Social };