anilink-api-wrapper 1.24.0 → 1.26.0
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 +3 -0
- package/dist/AniLink.js +10 -1
- package/dist/apis/anilist/interfaces/Activity.js +74 -40
- package/dist/apis/anilist/interfaces/Basic.js +33 -0
- package/dist/apis/anilist/interfaces/Distribution.js +21 -0
- package/dist/apis/anilist/interfaces/Media.js +11 -0
- package/dist/apis/anilist/interfaces/Notification.js +23 -0
- package/dist/apis/anilist/interfaces/SiteTrend.js +22 -1
- package/dist/apis/anilist/interfaces/responses/mutation/Favourites.js +83 -0
- package/dist/apis/anilist/interfaces/responses/query/Media.js +8 -9
- package/dist/apis/anilist/interfaces/responses/query/Notification.js +20 -22
- package/dist/apis/anilist/interfaces/responses/query/Recommendation.js +2 -2
- package/dist/apis/anilist/interfaces/responses/query/Review.js +2 -2
- package/dist/apis/anilist/interfaces/responses/query/SiteStatistics.js +8 -8
- package/dist/apis/anilist/interfaces/responses/query/Thread.js +4 -4
- package/dist/apis/anilist/interfaces/responses/query/ThreadComment.js +3 -3
- package/dist/apis/anilist/mutation/SaveActivityReply.js +2 -2
- package/dist/apis/anilist/mutation/ToggleFavourite.js +66 -0
- package/dist/apis/anilist/mutation/ToggleFollow.js +62 -0
- package/dist/apis/anilist/mutation/ToggleLike.js +2 -2
- package/dist/apis/anilist/mutation/UpdateFavouriteOrder.js +73 -0
- package/dist/apis/anilist/query/ActivityReply.js +2 -2
- package/dist/apis/anilist/query/AniChartUser.js +2 -2
- package/dist/apis/anilist/query/Markdown.js +2 -2
- package/dist/apis/anilist/query/page/ActivityReplies.js +2 -2
- package/dist/apis/anilist/query/page/Likes.js +2 -2
- package/package.json +45 -52
- package/dist/apis/anilist/interfaces/ActivityHistory.js +0 -2
- package/dist/apis/anilist/interfaces/ActivityNotification.js +0 -21
- package/dist/apis/anilist/interfaces/ActivityReply.js +0 -23
- package/dist/apis/anilist/interfaces/BasicComment.js +0 -12
- package/dist/apis/anilist/interfaces/BasicThread.js +0 -13
- package/dist/apis/anilist/interfaces/BasicUser.js +0 -14
- package/dist/apis/anilist/interfaces/MediaListEntry.js +0 -13
- package/dist/apis/anilist/interfaces/MediaStatistics.js +0 -2
- package/dist/apis/anilist/interfaces/MediaStats.js +0 -2
- package/dist/apis/anilist/interfaces/ScoreDistribution.js +0 -13
- package/dist/apis/anilist/interfaces/SiteTrendConnection.js +0 -25
- package/dist/apis/anilist/interfaces/StatusDistribution.js +0 -13
- package/dist/apis/anilist/interfaces/ThreadNotification.js +0 -27
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScoreDistributionSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `ScoreDistributionSchema` is a string representing the GraphQL schema for a score distribution.
|
|
6
|
-
* It includes the score and the amount.
|
|
7
|
-
*/
|
|
8
|
-
exports.ScoreDistributionSchema = `
|
|
9
|
-
scoreDistribution {
|
|
10
|
-
score
|
|
11
|
-
amount
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SiteTrendConnectionSchema = void 0;
|
|
4
|
-
const SiteTrend_1 = require("./SiteTrend");
|
|
5
|
-
/**
|
|
6
|
-
* `SiteTrendConnectionSchema` is a string representing the GraphQL schema for a site trend connection.
|
|
7
|
-
* It includes the page information and the edges and nodes of the site trends.
|
|
8
|
-
*/
|
|
9
|
-
exports.SiteTrendConnectionSchema = `
|
|
10
|
-
pageInfo {
|
|
11
|
-
total
|
|
12
|
-
perPage
|
|
13
|
-
currentPage
|
|
14
|
-
lastPage
|
|
15
|
-
hasNextPage
|
|
16
|
-
}
|
|
17
|
-
edges {
|
|
18
|
-
node {
|
|
19
|
-
${SiteTrend_1.SiteTrendSchema}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
nodes {
|
|
23
|
-
${SiteTrend_1.SiteTrendSchema}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusDistributionSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `StatusDistributionSchema` is a string representing the GraphQL schema for a status distribution.
|
|
6
|
-
* It includes the status and amount.
|
|
7
|
-
*/
|
|
8
|
-
exports.StatusDistributionSchema = `
|
|
9
|
-
statusDistribution {
|
|
10
|
-
status
|
|
11
|
-
amount
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThreadNotificationSchema = void 0;
|
|
4
|
-
const BasicThread_1 = require("./BasicThread");
|
|
5
|
-
const BasicComment_1 = require("./BasicComment");
|
|
6
|
-
const BasicUser_1 = require("./BasicUser");
|
|
7
|
-
/**
|
|
8
|
-
* `ThreadNotificationSchema` is a string representing the GraphQL schema for a thread notification.
|
|
9
|
-
* It includes the id, userId, type, commentId, context, createdAt, thread, comment, and user.
|
|
10
|
-
*/
|
|
11
|
-
exports.ThreadNotificationSchema = `
|
|
12
|
-
id
|
|
13
|
-
userId
|
|
14
|
-
type
|
|
15
|
-
commentId
|
|
16
|
-
context
|
|
17
|
-
createdAt
|
|
18
|
-
thread {
|
|
19
|
-
${BasicThread_1.BasicThreadSchema}
|
|
20
|
-
}
|
|
21
|
-
comment {
|
|
22
|
-
${BasicComment_1.BasicCommentSchema}
|
|
23
|
-
}
|
|
24
|
-
user {
|
|
25
|
-
${BasicUser_1.BasicUserSchema}
|
|
26
|
-
}
|
|
27
|
-
`;
|