@irfanshadikrishad/anilist 1.3.0-forbidden.1 → 1.3.0-forbidden.6
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/LICENSE +373 -0
- package/README.md +79 -53
- package/bin/helpers/auth.d.ts +15 -4
- package/bin/helpers/auth.js +461 -247
- package/bin/helpers/lists.d.ts +5 -1
- package/bin/helpers/lists.js +276 -127
- package/bin/helpers/mutations.js +35 -35
- package/bin/helpers/queries.d.ts +9 -5
- package/bin/helpers/queries.js +181 -154
- package/bin/helpers/truncate.d.ts +6 -0
- package/bin/helpers/truncate.js +10 -0
- package/bin/helpers/types.d.ts +239 -17
- package/bin/helpers/validation.d.ts +29 -0
- package/bin/helpers/validation.js +117 -0
- package/bin/helpers/workers.d.ts +20 -10
- package/bin/helpers/workers.js +169 -85
- package/bin/index.js +32 -1
- package/package.json +24 -18
package/bin/helpers/auth.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ declare class Auth {
|
|
|
3
3
|
/**
|
|
4
4
|
* Get access-token from user
|
|
5
5
|
*/
|
|
6
|
-
static GetAccessToken(): Promise<string>;
|
|
6
|
+
static GetAccessToken(): Promise<string | null>;
|
|
7
7
|
static StoreAccessToken(token: string): Promise<void>;
|
|
8
|
-
static RetriveAccessToken(): Promise<string>;
|
|
8
|
+
static RetriveAccessToken(): Promise<string | null>;
|
|
9
9
|
static Login(clientId: number, clientSecret: string): Promise<void>;
|
|
10
10
|
static Myself(): Promise<{
|
|
11
11
|
id: number;
|
|
@@ -49,8 +49,19 @@ declare class Auth {
|
|
|
49
49
|
static callAnimeImporter(): Promise<void>;
|
|
50
50
|
static callMangaImporter(): Promise<void>;
|
|
51
51
|
private static LikeFollowing;
|
|
52
|
-
private static
|
|
52
|
+
private static LikeGlobal;
|
|
53
53
|
private static LikeSpecificUser;
|
|
54
|
+
static LikeFollowingActivityV2(perPage: number): Promise<void>;
|
|
54
55
|
static AutoLike(): Promise<void>;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
declare class Social {
|
|
58
|
+
/**
|
|
59
|
+
* Follow the users that follows you
|
|
60
|
+
*/
|
|
61
|
+
static follow(): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Unfollow the users thats not following you
|
|
64
|
+
*/
|
|
65
|
+
static unfollow(): Promise<void>;
|
|
66
|
+
}
|
|
67
|
+
export { Auth, Social };
|