anilink-api-wrapper 1.20.0 → 1.22.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 +6 -227
- package/dist/AniLink.js +25 -3
- package/dist/apis/anilist/interfaces/Activity.js +67 -1
- package/dist/apis/anilist/mutation/DeleteActivity.js +61 -0
- package/dist/apis/anilist/mutation/DeleteCustomList.js +4 -1
- package/dist/apis/anilist/mutation/DeleteMediaListEntry.js +3 -0
- package/dist/apis/anilist/mutation/SaveListActivity.js +64 -0
- package/dist/apis/anilist/mutation/SaveMediaListEntry.js +3 -0
- package/dist/apis/anilist/mutation/SaveMessageActivity.js +68 -0
- package/dist/apis/anilist/mutation/SaveTextActivity.js +3 -0
- package/dist/apis/anilist/mutation/ToggleActivityPin.js +64 -0
- package/dist/apis/anilist/mutation/ToggleActivitySubscription.js +64 -0
- package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +3 -0
- package/dist/apis/anilist/mutation/UpdateUser.js +3 -0
- package/dist/apis/anilist/query/AniChartUser.js +3 -3
- package/dist/apis/anilist/query/Notification.js +3 -0
- package/dist/apis/anilist/query/Viewer.js +3 -0
- package/package.json +10 -4
- package/dist/apis/anilist/interfaces/Stats.js +0 -2
- package/dist/apis/anilist/interfaces/responses/AiringSchedule.js +0 -14
- package/dist/apis/anilist/interfaces/responses/AniChartUser.js +0 -2
- package/dist/apis/anilist/interfaces/responses/Character.js +0 -30
- package/dist/apis/anilist/interfaces/responses/ExternalLinkSourceCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/Media.js +0 -210
- package/dist/apis/anilist/interfaces/responses/MediaList.js +0 -32
- package/dist/apis/anilist/interfaces/responses/MediaListCollectionResponse.js +0 -41
- package/dist/apis/anilist/interfaces/responses/MediaTag.js +0 -2
- package/dist/apis/anilist/interfaces/responses/MediaTagCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/MediaTrend.js +0 -17
- package/dist/apis/anilist/interfaces/responses/Notification.js +0 -164
- package/dist/apis/anilist/interfaces/responses/Recommendation.js +0 -19
- package/dist/apis/anilist/interfaces/responses/Review.js +0 -26
- package/dist/apis/anilist/interfaces/responses/SiteStatistics.js +0 -27
- package/dist/apis/anilist/interfaces/responses/Staff.js +0 -55
- package/dist/apis/anilist/interfaces/responses/Studio.js +0 -56
- package/dist/apis/anilist/interfaces/responses/Thread.js +0 -40
- package/dist/apis/anilist/interfaces/responses/ThreadComment.js +0 -27
- package/dist/apis/anilist/interfaces/responses/User.js +0 -362
- package/dist/apis/anilist/query/Like.js +0 -69
- package/dist/apis/anilist/types/MediaListStatus.js +0 -15
- package/dist/apis/anilist/types/ScoreFormat.js +0 -14
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationSchema = void 0;
|
|
4
|
-
const Title_1 = require("../Title");
|
|
5
|
-
const ActivityNotification_1 = require("../ActivityNotification");
|
|
6
|
-
const BasicUser_1 = require("../BasicUser");
|
|
7
|
-
const BasicThread_1 = require("../BasicThread");
|
|
8
|
-
const BasicComment_1 = require("../BasicComment");
|
|
9
|
-
const ThreadNotification_1 = require("../ThreadNotification");
|
|
10
|
-
exports.NotificationSchema = `
|
|
11
|
-
... on AiringNotification {
|
|
12
|
-
id
|
|
13
|
-
type
|
|
14
|
-
animeId
|
|
15
|
-
episode
|
|
16
|
-
contexts
|
|
17
|
-
createdAt
|
|
18
|
-
media {
|
|
19
|
-
id
|
|
20
|
-
${Title_1.TitleSchema}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
... on FollowingNotification {
|
|
24
|
-
id
|
|
25
|
-
type
|
|
26
|
-
userId
|
|
27
|
-
context
|
|
28
|
-
createdAt
|
|
29
|
-
user {
|
|
30
|
-
${BasicUser_1.BasicUserSchema}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
... on ActivityMessageNotification {
|
|
34
|
-
id
|
|
35
|
-
userId
|
|
36
|
-
type
|
|
37
|
-
activityId
|
|
38
|
-
context
|
|
39
|
-
createdAt
|
|
40
|
-
message {
|
|
41
|
-
id
|
|
42
|
-
recipientId
|
|
43
|
-
messengerId
|
|
44
|
-
type
|
|
45
|
-
replyCount
|
|
46
|
-
message (asHtml: $asHtml)
|
|
47
|
-
isLocked
|
|
48
|
-
isSubscribed
|
|
49
|
-
likeCount
|
|
50
|
-
isLiked
|
|
51
|
-
isPrivate
|
|
52
|
-
siteUrl
|
|
53
|
-
createdAt
|
|
54
|
-
replies {
|
|
55
|
-
id
|
|
56
|
-
userId
|
|
57
|
-
activityId
|
|
58
|
-
text (asHtml: $asHtml)
|
|
59
|
-
createdAt
|
|
60
|
-
likeCount
|
|
61
|
-
isLiked
|
|
62
|
-
user {
|
|
63
|
-
${BasicUser_1.BasicUserSchema}
|
|
64
|
-
}
|
|
65
|
-
likes {
|
|
66
|
-
${BasicUser_1.BasicUserSchema}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
likes {
|
|
70
|
-
${BasicUser_1.BasicUserSchema}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
user {
|
|
74
|
-
${BasicUser_1.BasicUserSchema}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
... on ActivityMentionNotification {
|
|
78
|
-
${ActivityNotification_1.ActivityNotificationSchema}
|
|
79
|
-
}
|
|
80
|
-
... on ActivityReplyNotification {
|
|
81
|
-
${ActivityNotification_1.ActivityNotificationSchema}
|
|
82
|
-
}
|
|
83
|
-
... on ActivityReplySubscribedNotification {
|
|
84
|
-
${ActivityNotification_1.ActivityNotificationSchema}
|
|
85
|
-
}
|
|
86
|
-
... on ActivityLikeNotification {
|
|
87
|
-
${ActivityNotification_1.ActivityNotificationSchema}
|
|
88
|
-
}
|
|
89
|
-
... on ActivityReplyLikeNotification {
|
|
90
|
-
${ActivityNotification_1.ActivityNotificationSchema}
|
|
91
|
-
}
|
|
92
|
-
... on ThreadCommentMentionNotification {
|
|
93
|
-
${ThreadNotification_1.ThreadNotificationSchema}
|
|
94
|
-
}
|
|
95
|
-
... on ThreadCommentReplyNotification {
|
|
96
|
-
${ThreadNotification_1.ThreadNotificationSchema}
|
|
97
|
-
}
|
|
98
|
-
... on ThreadCommentSubscribedNotification {
|
|
99
|
-
${ThreadNotification_1.ThreadNotificationSchema}
|
|
100
|
-
}
|
|
101
|
-
... on ThreadCommentLikeNotification {
|
|
102
|
-
${ThreadNotification_1.ThreadNotificationSchema}
|
|
103
|
-
}
|
|
104
|
-
... on ThreadLikeNotification {
|
|
105
|
-
id
|
|
106
|
-
userId
|
|
107
|
-
type
|
|
108
|
-
context
|
|
109
|
-
createdAt
|
|
110
|
-
thread {
|
|
111
|
-
${BasicThread_1.BasicThreadSchema}
|
|
112
|
-
}
|
|
113
|
-
comment {
|
|
114
|
-
${BasicComment_1.BasicCommentSchema}
|
|
115
|
-
}
|
|
116
|
-
user {
|
|
117
|
-
${BasicUser_1.BasicUserSchema}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
... on RelatedMediaAdditionNotification {
|
|
121
|
-
id
|
|
122
|
-
type
|
|
123
|
-
mediaId
|
|
124
|
-
context
|
|
125
|
-
createdAt
|
|
126
|
-
media {
|
|
127
|
-
id
|
|
128
|
-
${Title_1.TitleSchema}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
... on MediaDataChangeNotification {
|
|
132
|
-
id
|
|
133
|
-
type
|
|
134
|
-
mediaId
|
|
135
|
-
context
|
|
136
|
-
reason
|
|
137
|
-
createdAt
|
|
138
|
-
media {
|
|
139
|
-
id
|
|
140
|
-
${Title_1.TitleSchema}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
... on MediaMergeNotification {
|
|
144
|
-
id
|
|
145
|
-
type
|
|
146
|
-
mediaId
|
|
147
|
-
deletedMediaTitles
|
|
148
|
-
context
|
|
149
|
-
reason
|
|
150
|
-
createdAt
|
|
151
|
-
media {
|
|
152
|
-
id
|
|
153
|
-
${Title_1.TitleSchema}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
... on MediaDeletionNotification {
|
|
157
|
-
id
|
|
158
|
-
type
|
|
159
|
-
deletedMediaTitle
|
|
160
|
-
context
|
|
161
|
-
reason
|
|
162
|
-
createdAt
|
|
163
|
-
}
|
|
164
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecommendationSchema = void 0;
|
|
4
|
-
const BasicUser_1 = require("../BasicUser");
|
|
5
|
-
const Media_1 = require("./Media");
|
|
6
|
-
exports.RecommendationSchema = `
|
|
7
|
-
id
|
|
8
|
-
rating
|
|
9
|
-
userRating
|
|
10
|
-
media {
|
|
11
|
-
${Media_1.MediaSchema}
|
|
12
|
-
}
|
|
13
|
-
mediaRecommendation {
|
|
14
|
-
${Media_1.MediaSchema}
|
|
15
|
-
}
|
|
16
|
-
user {
|
|
17
|
-
${BasicUser_1.BasicUserSchema}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReviewSchema = void 0;
|
|
4
|
-
const Media_1 = require("./Media");
|
|
5
|
-
const BasicUser_1 = require("../BasicUser");
|
|
6
|
-
exports.ReviewSchema = `
|
|
7
|
-
id
|
|
8
|
-
mediaId
|
|
9
|
-
userId
|
|
10
|
-
mediaType
|
|
11
|
-
summary
|
|
12
|
-
body (asHtml: $asHtml)
|
|
13
|
-
rating
|
|
14
|
-
ratingAmount
|
|
15
|
-
score
|
|
16
|
-
private
|
|
17
|
-
siteUrl
|
|
18
|
-
createdAt
|
|
19
|
-
updatedAt
|
|
20
|
-
user {
|
|
21
|
-
${BasicUser_1.BasicUserSchema}
|
|
22
|
-
}
|
|
23
|
-
media {
|
|
24
|
-
${Media_1.MediaSchema}
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SiteStatisticsSchema = void 0;
|
|
4
|
-
const SiteTrendConnection_1 = require("../SiteTrendConnection");
|
|
5
|
-
exports.SiteStatisticsSchema = `
|
|
6
|
-
users (sort: $usersSort, page: $usersPage, perPage: $usersPerPage) {
|
|
7
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
8
|
-
}
|
|
9
|
-
anime (sort: $animeSort, page: $animePage, perPage: $animePerPage) {
|
|
10
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
11
|
-
}
|
|
12
|
-
manga (sort: $mangaSort, page: $mangaPage, perPage: $mangaPerPage) {
|
|
13
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
14
|
-
}
|
|
15
|
-
characters (sort: $charactersSort, page: $charactersPage, perPage: $charactersPerPage) {
|
|
16
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
17
|
-
}
|
|
18
|
-
staff (sort: $staffSort, page: $staffPage, perPage: $staffPerPage) {
|
|
19
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
20
|
-
}
|
|
21
|
-
studios (sort: $studiosSort, page: $studiosPage, perPage: $studiosPerPage) {
|
|
22
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
23
|
-
}
|
|
24
|
-
reviews (sort: $reviewsSort, page: $reviewsPage, perPage: $reviewsPerPage) {
|
|
25
|
-
${SiteTrendConnection_1.SiteTrendConnectionSchema}
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StaffSchema = void 0;
|
|
4
|
-
const Name_1 = require("../Name");
|
|
5
|
-
const Image_1 = require("../Image");
|
|
6
|
-
const FuzzyDate_1 = require("../FuzzyDate");
|
|
7
|
-
const Title_1 = require("../Title");
|
|
8
|
-
exports.StaffSchema = `
|
|
9
|
-
id
|
|
10
|
-
${Name_1.NameSchema}
|
|
11
|
-
languageV2
|
|
12
|
-
${Image_1.ImageSchema}
|
|
13
|
-
description(asHtml: $asHtml)
|
|
14
|
-
primaryOccupations
|
|
15
|
-
gender
|
|
16
|
-
dateOfBirth {
|
|
17
|
-
${FuzzyDate_1.FuzzyDateSchema}
|
|
18
|
-
}
|
|
19
|
-
dateOfDeath {
|
|
20
|
-
${FuzzyDate_1.FuzzyDateSchema}
|
|
21
|
-
}
|
|
22
|
-
age
|
|
23
|
-
yearsActive
|
|
24
|
-
homeTown
|
|
25
|
-
bloodType
|
|
26
|
-
isFavourite
|
|
27
|
-
isFavouriteBlocked
|
|
28
|
-
siteUrl
|
|
29
|
-
staffMedia (sort: $staffMediaSort, type: $staffMediaType, onList: $staffMediaOnList, page: $staffMediaPage, perPage: $staffMediaPerPage) {
|
|
30
|
-
nodes {
|
|
31
|
-
id
|
|
32
|
-
${Title_1.TitleSchema}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
characters (sort: $charactersSort, page: $charactersPage, perPage: $charactersPerPage) {
|
|
36
|
-
nodes {
|
|
37
|
-
id
|
|
38
|
-
${Name_1.NameSchema}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
characterMedia (sort: $characterMediaSort, onList: $characterMediaOnList, page: $characterMediaPage, perPage: $characterMediaPerPage) {
|
|
42
|
-
nodes {
|
|
43
|
-
id
|
|
44
|
-
${Title_1.TitleSchema}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
submitter {
|
|
48
|
-
id
|
|
49
|
-
name
|
|
50
|
-
}
|
|
51
|
-
submissionStatus
|
|
52
|
-
submissionNotes
|
|
53
|
-
favourites
|
|
54
|
-
modNotes
|
|
55
|
-
`;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StudioSchema = void 0;
|
|
4
|
-
const Character_1 = require("./Character");
|
|
5
|
-
const Staff_1 = require("./Staff");
|
|
6
|
-
const Media_1 = require("./Media");
|
|
7
|
-
const Name_1 = require("../Name");
|
|
8
|
-
const Image_1 = require("../Image");
|
|
9
|
-
exports.StudioSchema = `
|
|
10
|
-
id
|
|
11
|
-
name
|
|
12
|
-
isAnimationStudio
|
|
13
|
-
media (sort: $mediaSort, isMain: $mediaIsMain onList: $mediaOnList, page: $mediaPage, perPage: $mediaPerPage) {
|
|
14
|
-
edges {
|
|
15
|
-
id
|
|
16
|
-
relationType
|
|
17
|
-
isMainStudio
|
|
18
|
-
characters {
|
|
19
|
-
${Character_1.CharacterSchema}
|
|
20
|
-
}
|
|
21
|
-
characterRole
|
|
22
|
-
characterName
|
|
23
|
-
roleNotes
|
|
24
|
-
dubGroup
|
|
25
|
-
voiceActors {
|
|
26
|
-
${Staff_1.StaffSchema}
|
|
27
|
-
}
|
|
28
|
-
voiceActorRoles {
|
|
29
|
-
voiceActor {
|
|
30
|
-
id
|
|
31
|
-
${Name_1.NameSchema}
|
|
32
|
-
${Image_1.ImageSchema}
|
|
33
|
-
}
|
|
34
|
-
roleNotes
|
|
35
|
-
dubGroup
|
|
36
|
-
}
|
|
37
|
-
favouriteOrder
|
|
38
|
-
node {
|
|
39
|
-
${Media_1.MediaSchema}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
nodes {
|
|
43
|
-
${Media_1.MediaSchema}
|
|
44
|
-
}
|
|
45
|
-
pageInfo {
|
|
46
|
-
total
|
|
47
|
-
perPage
|
|
48
|
-
currentPage
|
|
49
|
-
lastPage
|
|
50
|
-
hasNextPage
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
siteUrl
|
|
54
|
-
isFavourite
|
|
55
|
-
favourites
|
|
56
|
-
`;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThreadSchema = void 0;
|
|
4
|
-
const Media_1 = require("./Media");
|
|
5
|
-
const BasicUser_1 = require("../BasicUser");
|
|
6
|
-
exports.ThreadSchema = `
|
|
7
|
-
id
|
|
8
|
-
title
|
|
9
|
-
body (asHtml: $asHtml)
|
|
10
|
-
userId
|
|
11
|
-
replyUserId
|
|
12
|
-
replyCommentId
|
|
13
|
-
replyCount
|
|
14
|
-
viewCount
|
|
15
|
-
isLocked
|
|
16
|
-
isSticky
|
|
17
|
-
isSubscribed
|
|
18
|
-
likeCount
|
|
19
|
-
isLiked
|
|
20
|
-
repliedAt
|
|
21
|
-
createdAt
|
|
22
|
-
updatedAt
|
|
23
|
-
user {
|
|
24
|
-
${BasicUser_1.BasicUserSchema}
|
|
25
|
-
}
|
|
26
|
-
replyUser {
|
|
27
|
-
${BasicUser_1.BasicUserSchema}
|
|
28
|
-
}
|
|
29
|
-
likes {
|
|
30
|
-
${BasicUser_1.BasicUserSchema}
|
|
31
|
-
}
|
|
32
|
-
siteUrl
|
|
33
|
-
categories {
|
|
34
|
-
id
|
|
35
|
-
name
|
|
36
|
-
}
|
|
37
|
-
mediaCategories {
|
|
38
|
-
${Media_1.MediaSchema}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThreadCommentSchema = void 0;
|
|
4
|
-
const Thread_1 = require("./Thread");
|
|
5
|
-
const BasicUser_1 = require("../BasicUser");
|
|
6
|
-
exports.ThreadCommentSchema = `
|
|
7
|
-
id
|
|
8
|
-
userId
|
|
9
|
-
threadId
|
|
10
|
-
comment (asHtml: $asHtml)
|
|
11
|
-
likeCount
|
|
12
|
-
isLiked
|
|
13
|
-
siteUrl
|
|
14
|
-
createdAt
|
|
15
|
-
updatedAt
|
|
16
|
-
thread {
|
|
17
|
-
${Thread_1.ThreadSchema}
|
|
18
|
-
}
|
|
19
|
-
user {
|
|
20
|
-
${BasicUser_1.BasicUserSchema}
|
|
21
|
-
}
|
|
22
|
-
likes {
|
|
23
|
-
${BasicUser_1.BasicUserSchema}
|
|
24
|
-
}
|
|
25
|
-
childComments
|
|
26
|
-
isLocked
|
|
27
|
-
`;
|