anilink-api-wrapper 1.29.2 → 2.1.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/LICENSE +21 -21
- package/README.md +71 -241
- package/dist/AniLink.d.ts +12329 -0
- package/dist/AniLink.mjs +7298 -0
- package/dist/anilist.d.ts +1 -0
- package/dist/anilist.mjs +5 -0
- package/dist/mal.d.ts +1 -0
- package/dist/mal.mjs +5 -0
- package/package.json +121 -46
- package/dist/AniLink.js +0 -248
- package/dist/apis/anilist/Custom.js +0 -42
- package/dist/apis/anilist/interfaces/Activity.js +0 -436
- package/dist/apis/anilist/interfaces/Basic.js +0 -33
- package/dist/apis/anilist/interfaces/CoverImage.js +0 -15
- package/dist/apis/anilist/interfaces/Distribution.js +0 -23
- package/dist/apis/anilist/interfaces/ExternalLink.js +0 -14
- package/dist/apis/anilist/interfaces/Favoured.js +0 -2
- package/dist/apis/anilist/interfaces/FuzzyDate.js +0 -12
- package/dist/apis/anilist/interfaces/Image.js +0 -13
- package/dist/apis/anilist/interfaces/ListScores.js +0 -2
- package/dist/apis/anilist/interfaces/Media.js +0 -13
- package/dist/apis/anilist/interfaces/Name.js +0 -15
- package/dist/apis/anilist/interfaces/NextAiringEpisode.js +0 -14
- package/dist/apis/anilist/interfaces/Notification.js +0 -25
- package/dist/apis/anilist/interfaces/Ranking.js +0 -19
- package/dist/apis/anilist/interfaces/SiteTrend.js +0 -33
- package/dist/apis/anilist/interfaces/Staff.js +0 -2
- package/dist/apis/anilist/interfaces/Stat.js +0 -2
- package/dist/apis/anilist/interfaces/Statistics.js +0 -2
- package/dist/apis/anilist/interfaces/StreamingEpisode.js +0 -15
- package/dist/apis/anilist/interfaces/Studio.js +0 -2
- package/dist/apis/anilist/interfaces/Tag.js +0 -18
- package/dist/apis/anilist/interfaces/Title.js +0 -15
- package/dist/apis/anilist/interfaces/Trailer.js +0 -14
- package/dist/apis/anilist/interfaces/UserStats.js +0 -23
- package/dist/apis/anilist/interfaces/responses/mutation/Favourites.js +0 -83
- package/dist/apis/anilist/interfaces/responses/query/AiringSchedule.js +0 -18
- package/dist/apis/anilist/interfaces/responses/query/AniChartUser.js +0 -2
- package/dist/apis/anilist/interfaces/responses/query/Character.js +0 -34
- package/dist/apis/anilist/interfaces/responses/query/ExternalLinkSourceCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/query/Media.js +0 -217
- package/dist/apis/anilist/interfaces/responses/query/MediaList.js +0 -36
- package/dist/apis/anilist/interfaces/responses/query/MediaListCollectionResponse.js +0 -49
- package/dist/apis/anilist/interfaces/responses/query/MediaTagCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/query/MediaTrend.js +0 -21
- package/dist/apis/anilist/interfaces/responses/query/Notification.js +0 -166
- package/dist/apis/anilist/interfaces/responses/query/Recommendation.js +0 -23
- package/dist/apis/anilist/interfaces/responses/query/Review.js +0 -30
- package/dist/apis/anilist/interfaces/responses/query/SiteStatistics.js +0 -31
- package/dist/apis/anilist/interfaces/responses/query/Staff.js +0 -59
- package/dist/apis/anilist/interfaces/responses/query/Studio.js +0 -60
- package/dist/apis/anilist/interfaces/responses/query/Thread.js +0 -44
- package/dist/apis/anilist/interfaces/responses/query/ThreadComment.js +0 -31
- package/dist/apis/anilist/interfaces/responses/query/User.js +0 -366
- package/dist/apis/anilist/mutation/DeleteActivity.js +0 -61
- package/dist/apis/anilist/mutation/DeleteActivityReply.js +0 -61
- package/dist/apis/anilist/mutation/DeleteCustomList.js +0 -63
- package/dist/apis/anilist/mutation/DeleteMediaListEntry.js +0 -61
- package/dist/apis/anilist/mutation/DeleteReview.js +0 -61
- package/dist/apis/anilist/mutation/DeleteThread.js +0 -61
- package/dist/apis/anilist/mutation/DeleteThreadComment.js +0 -61
- package/dist/apis/anilist/mutation/SaveActivityReply.js +0 -66
- package/dist/apis/anilist/mutation/SaveListActivity.js +0 -64
- package/dist/apis/anilist/mutation/SaveMediaListEntry.js +0 -97
- package/dist/apis/anilist/mutation/SaveMessageActivity.js +0 -68
- package/dist/apis/anilist/mutation/SaveRecommendation.js +0 -66
- package/dist/apis/anilist/mutation/SaveReview.js +0 -68
- package/dist/apis/anilist/mutation/SaveTextActivity.js +0 -65
- package/dist/apis/anilist/mutation/SaveThread.js +0 -69
- package/dist/apis/anilist/mutation/SaveThreadComment.js +0 -67
- package/dist/apis/anilist/mutation/ToggleActivityPin.js +0 -64
- package/dist/apis/anilist/mutation/ToggleActivitySubscription.js +0 -64
- package/dist/apis/anilist/mutation/ToggleFavourite.js +0 -66
- package/dist/apis/anilist/mutation/ToggleFollow.js +0 -62
- package/dist/apis/anilist/mutation/ToggleLike.js +0 -64
- package/dist/apis/anilist/mutation/ToggleLikeV2.js +0 -64
- package/dist/apis/anilist/mutation/ToggleThreadSubscription.js +0 -64
- package/dist/apis/anilist/mutation/UpdateAniChartHighlights.js +0 -58
- package/dist/apis/anilist/mutation/UpdateAniChartSettings.js +0 -58
- package/dist/apis/anilist/mutation/UpdateFavouriteOrder.js +0 -73
- package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +0 -93
- package/dist/apis/anilist/mutation/UpdateUser.js +0 -127
- package/dist/apis/anilist/query/Activity.js +0 -86
- package/dist/apis/anilist/query/ActivityReply.js +0 -60
- package/dist/apis/anilist/query/AiringSchedule.js +0 -78
- package/dist/apis/anilist/query/AniChartUser.js +0 -56
- package/dist/apis/anilist/query/Character.js +0 -70
- package/dist/apis/anilist/query/ExternalLinkSourceCollection.js +0 -68
- package/dist/apis/anilist/query/Follower.js +0 -64
- package/dist/apis/anilist/query/Following.js +0 -64
- package/dist/apis/anilist/query/GenreCollection.js +0 -46
- package/dist/apis/anilist/query/Markdown.js +0 -57
- package/dist/apis/anilist/query/Media.js +0 -134
- package/dist/apis/anilist/query/MediaList.js +0 -90
- package/dist/apis/anilist/query/MediaListCollection.js +0 -76
- package/dist/apis/anilist/query/MediaTagCollection.js +0 -57
- package/dist/apis/anilist/query/MediaTrend.js +0 -84
- package/dist/apis/anilist/query/Notification.js +0 -65
- package/dist/apis/anilist/query/Recommendation.js +0 -68
- package/dist/apis/anilist/query/Review.js +0 -64
- package/dist/apis/anilist/query/SiteStatistics.js +0 -78
- package/dist/apis/anilist/query/Staff.js +0 -79
- package/dist/apis/anilist/query/Studio.js +0 -82
- package/dist/apis/anilist/query/Thread.js +0 -68
- package/dist/apis/anilist/query/ThreadComment.js +0 -63
- package/dist/apis/anilist/query/User.js +0 -68
- package/dist/apis/anilist/query/Viewer.js +0 -65
- package/dist/apis/anilist/query/page/Activities.js +0 -97
- package/dist/apis/anilist/query/page/ActivityReplies.js +0 -71
- package/dist/apis/anilist/query/page/AiringSchedules.js +0 -89
- package/dist/apis/anilist/query/page/Characters.js +0 -81
- package/dist/apis/anilist/query/page/Followers.js +0 -75
- package/dist/apis/anilist/query/page/Followings.js +0 -75
- package/dist/apis/anilist/query/page/Likes.js +0 -71
- package/dist/apis/anilist/query/page/MediaLists.js +0 -101
- package/dist/apis/anilist/query/page/MediaTrends.js +0 -95
- package/dist/apis/anilist/query/page/Medias.js +0 -143
- package/dist/apis/anilist/query/page/Notifications.js +0 -73
- package/dist/apis/anilist/query/page/Recommendations.js +0 -79
- package/dist/apis/anilist/query/page/Reviews.js +0 -75
- package/dist/apis/anilist/query/page/Staffs.js +0 -90
- package/dist/apis/anilist/query/page/Studios.js +0 -93
- package/dist/apis/anilist/query/page/ThreadCommments.js +0 -74
- package/dist/apis/anilist/query/page/Threads.js +0 -79
- package/dist/apis/anilist/query/page/Users.js +0 -79
- package/dist/apis/anilist/types/ActivityType.js +0 -14
- package/dist/apis/anilist/types/DisabledListActivity.js +0 -11
- package/dist/apis/anilist/types/Format.js +0 -30
- package/dist/apis/anilist/types/FuzzyDate.js +0 -12
- package/dist/apis/anilist/types/MediaListOptions.js +0 -16
- package/dist/apis/anilist/types/NotificationOptions.js +0 -29
- package/dist/apis/anilist/types/RecommendationRating.js +0 -12
- package/dist/apis/anilist/types/Season.js +0 -13
- package/dist/apis/anilist/types/Sort.js +0 -265
- package/dist/apis/anilist/types/Source.js +0 -25
- package/dist/apis/anilist/types/Status.js +0 -26
- package/dist/apis/anilist/types/Type.js +0 -44
- package/dist/apis/anilist/types/UserStaffNameLanguage.js +0 -15
- package/dist/apis/anilist/types/UserTitleLanguage.js +0 -15
- package/dist/base/APIWrapper.js +0 -17
- package/dist/base/RequestHandler.js +0 -48
- package/dist/base/ValidateVariables.js +0 -125
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActivityNotificationSchema = exports.MessageActivitySchema = exports.ListActivitySchema = exports.TextActivitySchema = exports.ActivityWithRepliesSchema = exports.ActivitySchemaV2 = exports.ActivitySchema = exports.ActivityReplySchema = void 0;
|
|
4
|
-
const Basic_1 = require("./Basic");
|
|
5
|
-
const Title_1 = require("./Title");
|
|
6
|
-
/**
|
|
7
|
-
* `ActivityReplySchema` is a constant representing the GraphQL schema for an activity reply query.
|
|
8
|
-
* It includes the id of the reply, the user id, the activity id, the text of the reply, the like count, the like status, the creation date, the user details, and the likes details.
|
|
9
|
-
*/
|
|
10
|
-
exports.ActivityReplySchema = `
|
|
11
|
-
id
|
|
12
|
-
userId
|
|
13
|
-
activityId
|
|
14
|
-
text (asHtml: $asHtml)
|
|
15
|
-
likeCount
|
|
16
|
-
isLiked
|
|
17
|
-
createdAt
|
|
18
|
-
user {
|
|
19
|
-
${Basic_1.BasicUserSchema}
|
|
20
|
-
}
|
|
21
|
-
likes {
|
|
22
|
-
${Basic_1.BasicUserSchema}
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
/**
|
|
26
|
-
* `ActivitySchema` is a constant representing the GraphQL schema for an activity query.
|
|
27
|
-
* It includes the TextActivity, ListActivity, and MessageActivity each having their own properties.
|
|
28
|
-
*/
|
|
29
|
-
exports.ActivitySchema = `
|
|
30
|
-
activity {
|
|
31
|
-
... on TextActivity {
|
|
32
|
-
id
|
|
33
|
-
userId
|
|
34
|
-
type
|
|
35
|
-
replyCount
|
|
36
|
-
text (asHtml: $asHtml)
|
|
37
|
-
siteUrl
|
|
38
|
-
isLocked
|
|
39
|
-
isSubscribed
|
|
40
|
-
likeCount
|
|
41
|
-
isLiked
|
|
42
|
-
isPinned
|
|
43
|
-
createdAt
|
|
44
|
-
}
|
|
45
|
-
... on ListActivity {
|
|
46
|
-
id
|
|
47
|
-
userId
|
|
48
|
-
type
|
|
49
|
-
replyCount
|
|
50
|
-
status
|
|
51
|
-
progress
|
|
52
|
-
isLocked
|
|
53
|
-
isSubscribed
|
|
54
|
-
likeCount
|
|
55
|
-
isLiked
|
|
56
|
-
isPinned
|
|
57
|
-
siteUrl
|
|
58
|
-
createdAt
|
|
59
|
-
media {
|
|
60
|
-
id
|
|
61
|
-
title {
|
|
62
|
-
romaji
|
|
63
|
-
english
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
... on MessageActivity {
|
|
68
|
-
id
|
|
69
|
-
recipientId
|
|
70
|
-
messengerId
|
|
71
|
-
type
|
|
72
|
-
replyCount
|
|
73
|
-
message (asHtml: $asHtml)
|
|
74
|
-
isLocked
|
|
75
|
-
isSubscribed
|
|
76
|
-
likeCount
|
|
77
|
-
isLiked
|
|
78
|
-
isPrivate
|
|
79
|
-
siteUrl
|
|
80
|
-
createdAt
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
exports.ActivitySchemaV2 = `
|
|
85
|
-
... on TextActivity {
|
|
86
|
-
id
|
|
87
|
-
userId
|
|
88
|
-
type
|
|
89
|
-
replyCount
|
|
90
|
-
text (asHtml: $asHtml)
|
|
91
|
-
siteUrl
|
|
92
|
-
isLocked
|
|
93
|
-
isSubscribed
|
|
94
|
-
likeCount
|
|
95
|
-
isLiked
|
|
96
|
-
isPinned
|
|
97
|
-
createdAt
|
|
98
|
-
user {
|
|
99
|
-
${Basic_1.BasicUserSchema}
|
|
100
|
-
}
|
|
101
|
-
replies {
|
|
102
|
-
${exports.ActivityReplySchema}
|
|
103
|
-
}
|
|
104
|
-
likes {
|
|
105
|
-
${Basic_1.BasicUserSchema}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
... on ListActivity {
|
|
109
|
-
id
|
|
110
|
-
userId
|
|
111
|
-
type
|
|
112
|
-
replyCount
|
|
113
|
-
status
|
|
114
|
-
progress
|
|
115
|
-
isLocked
|
|
116
|
-
isSubscribed
|
|
117
|
-
likeCount
|
|
118
|
-
isLiked
|
|
119
|
-
isPinned
|
|
120
|
-
siteUrl
|
|
121
|
-
createdAt
|
|
122
|
-
media {
|
|
123
|
-
id
|
|
124
|
-
title {
|
|
125
|
-
romaji
|
|
126
|
-
english
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
user {
|
|
130
|
-
${Basic_1.BasicUserSchema}
|
|
131
|
-
}
|
|
132
|
-
replies {
|
|
133
|
-
${exports.ActivityReplySchema}
|
|
134
|
-
}
|
|
135
|
-
likes {
|
|
136
|
-
${Basic_1.BasicUserSchema}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
... on MessageActivity {
|
|
140
|
-
id
|
|
141
|
-
recipientId
|
|
142
|
-
messengerId
|
|
143
|
-
type
|
|
144
|
-
replyCount
|
|
145
|
-
message (asHtml: $asHtml)
|
|
146
|
-
isLocked
|
|
147
|
-
isSubscribed
|
|
148
|
-
likeCount
|
|
149
|
-
isLiked
|
|
150
|
-
isPrivate
|
|
151
|
-
siteUrl
|
|
152
|
-
createdAt
|
|
153
|
-
recipient {
|
|
154
|
-
${Basic_1.BasicUserSchema}
|
|
155
|
-
}
|
|
156
|
-
messenger {
|
|
157
|
-
${Basic_1.BasicUserSchema}
|
|
158
|
-
}
|
|
159
|
-
replies {
|
|
160
|
-
${exports.ActivityReplySchema}
|
|
161
|
-
}
|
|
162
|
-
likes {
|
|
163
|
-
${Basic_1.BasicUserSchema}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
... on ActivityReply {
|
|
167
|
-
id
|
|
168
|
-
userId
|
|
169
|
-
activityId
|
|
170
|
-
text (asHtml: $asHtml)
|
|
171
|
-
likeCount
|
|
172
|
-
isLiked
|
|
173
|
-
createdAt
|
|
174
|
-
user {
|
|
175
|
-
${Basic_1.BasicUserSchema}
|
|
176
|
-
}
|
|
177
|
-
likes {
|
|
178
|
-
${Basic_1.BasicUserSchema}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
... on Thread {
|
|
182
|
-
id
|
|
183
|
-
title
|
|
184
|
-
body (asHtml: $asHtml)
|
|
185
|
-
ThreadUserId: userId
|
|
186
|
-
replyUserId
|
|
187
|
-
replyCommentId
|
|
188
|
-
ThreadReplyCount: replyCount
|
|
189
|
-
viewCount
|
|
190
|
-
isLocked
|
|
191
|
-
isSticky
|
|
192
|
-
isSubscribed
|
|
193
|
-
likeCount
|
|
194
|
-
isLiked
|
|
195
|
-
repliedAt
|
|
196
|
-
createdAt
|
|
197
|
-
updatedAt
|
|
198
|
-
user {
|
|
199
|
-
${Basic_1.BasicUserSchema}
|
|
200
|
-
}
|
|
201
|
-
replyUser {
|
|
202
|
-
${Basic_1.BasicUserSchema}
|
|
203
|
-
}
|
|
204
|
-
likes {
|
|
205
|
-
${Basic_1.BasicUserSchema}
|
|
206
|
-
}
|
|
207
|
-
siteUrl
|
|
208
|
-
categories {
|
|
209
|
-
id
|
|
210
|
-
name
|
|
211
|
-
}
|
|
212
|
-
mediaCategories {
|
|
213
|
-
id
|
|
214
|
-
${Title_1.TitleSchema}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
... on ThreadComment {
|
|
218
|
-
id
|
|
219
|
-
userId
|
|
220
|
-
threadId
|
|
221
|
-
comment (asHtml: $asHtml)
|
|
222
|
-
likeCount
|
|
223
|
-
isLiked
|
|
224
|
-
siteUrl
|
|
225
|
-
createdAt
|
|
226
|
-
updatedAt
|
|
227
|
-
thread {
|
|
228
|
-
id
|
|
229
|
-
title
|
|
230
|
-
}
|
|
231
|
-
user {
|
|
232
|
-
${Basic_1.BasicUserSchema}
|
|
233
|
-
}
|
|
234
|
-
likes {
|
|
235
|
-
${Basic_1.BasicUserSchema}
|
|
236
|
-
}
|
|
237
|
-
childComments
|
|
238
|
-
isLocked
|
|
239
|
-
}
|
|
240
|
-
`;
|
|
241
|
-
/**
|
|
242
|
-
* `ActivityWithRepliesSchema` is a constant representing the GraphQL schema for an activity query with replies.
|
|
243
|
-
* It includes the TextActivity, ListActivity, and MessageActivity each having their own properties and replies.
|
|
244
|
-
*/
|
|
245
|
-
exports.ActivityWithRepliesSchema = `
|
|
246
|
-
... on TextActivity {
|
|
247
|
-
id
|
|
248
|
-
userId
|
|
249
|
-
type
|
|
250
|
-
replyCount
|
|
251
|
-
text (asHtml: $asHtml)
|
|
252
|
-
siteUrl
|
|
253
|
-
isLocked
|
|
254
|
-
isSubscribed
|
|
255
|
-
likeCount
|
|
256
|
-
isLiked
|
|
257
|
-
isPinned
|
|
258
|
-
createdAt
|
|
259
|
-
user {
|
|
260
|
-
${Basic_1.BasicUserSchema}
|
|
261
|
-
}
|
|
262
|
-
replies {
|
|
263
|
-
${exports.ActivityReplySchema}
|
|
264
|
-
}
|
|
265
|
-
likes {
|
|
266
|
-
${Basic_1.BasicUserSchema}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
... on ListActivity {
|
|
270
|
-
id
|
|
271
|
-
userId
|
|
272
|
-
type
|
|
273
|
-
replyCount
|
|
274
|
-
status
|
|
275
|
-
progress
|
|
276
|
-
isLocked
|
|
277
|
-
isSubscribed
|
|
278
|
-
likeCount
|
|
279
|
-
isLiked
|
|
280
|
-
isPinned
|
|
281
|
-
siteUrl
|
|
282
|
-
createdAt
|
|
283
|
-
media {
|
|
284
|
-
id
|
|
285
|
-
title {
|
|
286
|
-
romaji
|
|
287
|
-
english
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
user {
|
|
291
|
-
${Basic_1.BasicUserSchema}
|
|
292
|
-
}
|
|
293
|
-
replies {
|
|
294
|
-
${exports.ActivityReplySchema}
|
|
295
|
-
}
|
|
296
|
-
likes {
|
|
297
|
-
${Basic_1.BasicUserSchema}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
... on MessageActivity {
|
|
301
|
-
id
|
|
302
|
-
recipientId
|
|
303
|
-
messengerId
|
|
304
|
-
type
|
|
305
|
-
replyCount
|
|
306
|
-
message (asHtml: $asHtml)
|
|
307
|
-
isLocked
|
|
308
|
-
isSubscribed
|
|
309
|
-
likeCount
|
|
310
|
-
isLiked
|
|
311
|
-
isPrivate
|
|
312
|
-
siteUrl
|
|
313
|
-
createdAt
|
|
314
|
-
recipient {
|
|
315
|
-
${Basic_1.BasicUserSchema}
|
|
316
|
-
}
|
|
317
|
-
messenger {
|
|
318
|
-
${Basic_1.BasicUserSchema}
|
|
319
|
-
}
|
|
320
|
-
replies {
|
|
321
|
-
${exports.ActivityReplySchema}
|
|
322
|
-
}
|
|
323
|
-
likes {
|
|
324
|
-
${Basic_1.BasicUserSchema}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
`;
|
|
328
|
-
/**
|
|
329
|
-
* `TextActivity` is an object representing a text activity.
|
|
330
|
-
* It includes the id, user id, type, reply count, text, site url, lock status, subscription status, like count, like status, pin status, creation date, user details, replies, and likes.
|
|
331
|
-
*/
|
|
332
|
-
exports.TextActivitySchema = `
|
|
333
|
-
id
|
|
334
|
-
userId
|
|
335
|
-
type
|
|
336
|
-
replyCount
|
|
337
|
-
text (asHtml: $asHtml)
|
|
338
|
-
siteUrl
|
|
339
|
-
isLocked
|
|
340
|
-
isSubscribed
|
|
341
|
-
likeCount
|
|
342
|
-
isLiked
|
|
343
|
-
isPinned
|
|
344
|
-
createdAt
|
|
345
|
-
user {
|
|
346
|
-
${Basic_1.BasicUserSchema}
|
|
347
|
-
}
|
|
348
|
-
replies {
|
|
349
|
-
${exports.ActivityReplySchema}
|
|
350
|
-
}
|
|
351
|
-
likes {
|
|
352
|
-
${Basic_1.BasicUserSchema}
|
|
353
|
-
}
|
|
354
|
-
`;
|
|
355
|
-
/**
|
|
356
|
-
* `ListActivitySchema` is an object representing a list activity.
|
|
357
|
-
* It includes the id, user id, type, reply count, status, progress, lock status, subscription status, like count, like status, pin status, site url, creation date, media details, user details, replies, and likes.
|
|
358
|
-
*/
|
|
359
|
-
exports.ListActivitySchema = `
|
|
360
|
-
id
|
|
361
|
-
userId
|
|
362
|
-
type
|
|
363
|
-
replyCount
|
|
364
|
-
status
|
|
365
|
-
progress
|
|
366
|
-
isLocked
|
|
367
|
-
isSubscribed
|
|
368
|
-
likeCount
|
|
369
|
-
isLiked
|
|
370
|
-
isPinned
|
|
371
|
-
siteUrl
|
|
372
|
-
createdAt
|
|
373
|
-
media {
|
|
374
|
-
id
|
|
375
|
-
title {
|
|
376
|
-
romaji
|
|
377
|
-
english
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
user {
|
|
381
|
-
${Basic_1.BasicUserSchema}
|
|
382
|
-
}
|
|
383
|
-
replies {
|
|
384
|
-
${exports.ActivityReplySchema}
|
|
385
|
-
}
|
|
386
|
-
likes {
|
|
387
|
-
${Basic_1.BasicUserSchema}
|
|
388
|
-
}
|
|
389
|
-
`;
|
|
390
|
-
/**
|
|
391
|
-
* `MessageActivitySchema` is an object representing a message activity.
|
|
392
|
-
* It includes the id, recipient id, messenger id, type, reply count, message, lock status, subscription status, like count, like status, privacy status, site url, creation date, recipient details, messenger details, replies, and likes.
|
|
393
|
-
*/
|
|
394
|
-
exports.MessageActivitySchema = `
|
|
395
|
-
id
|
|
396
|
-
recipientId
|
|
397
|
-
messengerId
|
|
398
|
-
type
|
|
399
|
-
replyCount
|
|
400
|
-
message (asHtml: $asHtml)
|
|
401
|
-
isLocked
|
|
402
|
-
isSubscribed
|
|
403
|
-
likeCount
|
|
404
|
-
isLiked
|
|
405
|
-
isPrivate
|
|
406
|
-
siteUrl
|
|
407
|
-
createdAt
|
|
408
|
-
recipient {
|
|
409
|
-
${Basic_1.BasicUserSchema}
|
|
410
|
-
}
|
|
411
|
-
messenger {
|
|
412
|
-
${Basic_1.BasicUserSchema}
|
|
413
|
-
}
|
|
414
|
-
replies {
|
|
415
|
-
${exports.ActivityReplySchema}
|
|
416
|
-
}
|
|
417
|
-
likes {
|
|
418
|
-
${Basic_1.BasicUserSchema}
|
|
419
|
-
}
|
|
420
|
-
`;
|
|
421
|
-
/**
|
|
422
|
-
* `ActivityNotificationSchema` is a constant representing the GraphQL schema for an activity notification query.
|
|
423
|
-
* It includes the id of the notification, the user id, the type of the notification, the activity id, the context, the creation date, the activity details, and the user details.
|
|
424
|
-
*/
|
|
425
|
-
exports.ActivityNotificationSchema = `
|
|
426
|
-
id
|
|
427
|
-
userId
|
|
428
|
-
type
|
|
429
|
-
activityId
|
|
430
|
-
context
|
|
431
|
-
createdAt
|
|
432
|
-
${exports.ActivitySchema}
|
|
433
|
-
user {
|
|
434
|
-
${Basic_1.BasicUserSchema}
|
|
435
|
-
}
|
|
436
|
-
`;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasicCommentSchema = exports.BasicThreadSchema = exports.BasicUserSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `BasicUserSchema` is a string representing the GraphQL schema for a basic user.
|
|
6
|
-
* It includes the id, name, and avatar with a large size.
|
|
7
|
-
*/
|
|
8
|
-
exports.BasicUserSchema = `
|
|
9
|
-
id
|
|
10
|
-
name
|
|
11
|
-
avatar {
|
|
12
|
-
large
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
/**
|
|
16
|
-
* `BasicThreadSchema` is a string representing the GraphQL schema for a basic thread.
|
|
17
|
-
* It includes the id, title, body, and site url.
|
|
18
|
-
*/
|
|
19
|
-
exports.BasicThreadSchema = `
|
|
20
|
-
id
|
|
21
|
-
title
|
|
22
|
-
body (asHtml: $asHtml)
|
|
23
|
-
siteUrl
|
|
24
|
-
`;
|
|
25
|
-
/**
|
|
26
|
-
* `BasicCommentSchema` is a string representing the GraphQL schema for a basic comment.
|
|
27
|
-
* It includes the id, user id, and thread id.
|
|
28
|
-
*/
|
|
29
|
-
exports.BasicCommentSchema = `
|
|
30
|
-
id
|
|
31
|
-
userId
|
|
32
|
-
threadId
|
|
33
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CoverImageSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `CoverImageSchema` is a string representing the GraphQL schema for a cover image.
|
|
6
|
-
* It includes the extra large, large, medium size images and color.
|
|
7
|
-
*/
|
|
8
|
-
exports.CoverImageSchema = `
|
|
9
|
-
coverImage {
|
|
10
|
-
extraLarge
|
|
11
|
-
large
|
|
12
|
-
medium
|
|
13
|
-
color
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusDistributionSchema = 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
|
-
`;
|
|
14
|
-
/**
|
|
15
|
-
* `StatusDistributionSchema` is a string representing the GraphQL schema for a status distribution.
|
|
16
|
-
* It includes the status and amount.
|
|
17
|
-
*/
|
|
18
|
-
exports.StatusDistributionSchema = `
|
|
19
|
-
statusDistribution {
|
|
20
|
-
status
|
|
21
|
-
amount
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExternalLinkSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `ExternalLinkSchema` is a string representing the GraphQL schema for an external link.
|
|
6
|
-
* It includes the id, url, and site.
|
|
7
|
-
*/
|
|
8
|
-
exports.ExternalLinkSchema = `
|
|
9
|
-
externalLinks {
|
|
10
|
-
id
|
|
11
|
-
url
|
|
12
|
-
site
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FuzzyDateSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `FuzzyDateSchema` is a string representing the GraphQL schema for a fuzzy date.
|
|
6
|
-
* It includes the year, month, and day.
|
|
7
|
-
*/
|
|
8
|
-
exports.FuzzyDateSchema = `
|
|
9
|
-
year
|
|
10
|
-
month
|
|
11
|
-
day
|
|
12
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `ImageSchema` is a string representing the GraphQL schema for an image.
|
|
6
|
-
* It includes the large and medium size images.
|
|
7
|
-
*/
|
|
8
|
-
exports.ImageSchema = `
|
|
9
|
-
image {
|
|
10
|
-
large
|
|
11
|
-
medium
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaListEntrySchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `MediaListEntrySchema` is a string representing the GraphQL schema for a media list entry.
|
|
6
|
-
* It includes the id and status.
|
|
7
|
-
*/
|
|
8
|
-
exports.MediaListEntrySchema = `
|
|
9
|
-
mediaListEntry {
|
|
10
|
-
id
|
|
11
|
-
status
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NameSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `NameSchema` is a string representing the GraphQL schema for a name.
|
|
6
|
-
* It includes the first name, last name, full name, and native name.
|
|
7
|
-
*/
|
|
8
|
-
exports.NameSchema = `
|
|
9
|
-
name {
|
|
10
|
-
first
|
|
11
|
-
last
|
|
12
|
-
full
|
|
13
|
-
native
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NextAiringEpisodeSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `NextAiringEpisodeSchema` is a string representing the GraphQL schema for a next airing episode.
|
|
6
|
-
* It includes the airing time, time until airing, and the episode number.
|
|
7
|
-
*/
|
|
8
|
-
exports.NextAiringEpisodeSchema = `
|
|
9
|
-
nextAiringEpisode {
|
|
10
|
-
airingAt
|
|
11
|
-
timeUntilAiring
|
|
12
|
-
episode
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThreadNotificationSchema = void 0;
|
|
4
|
-
const Basic_1 = require("./Basic");
|
|
5
|
-
/**
|
|
6
|
-
* `ThreadNotificationSchema` is a string representing the GraphQL schema for a thread notification.
|
|
7
|
-
* It includes the id, userId, type, commentId, context, createdAt, thread, comment, and user.
|
|
8
|
-
*/
|
|
9
|
-
exports.ThreadNotificationSchema = `
|
|
10
|
-
id
|
|
11
|
-
userId
|
|
12
|
-
type
|
|
13
|
-
commentId
|
|
14
|
-
context
|
|
15
|
-
createdAt
|
|
16
|
-
thread {
|
|
17
|
-
${Basic_1.BasicThreadSchema}
|
|
18
|
-
}
|
|
19
|
-
comment {
|
|
20
|
-
${Basic_1.BasicCommentSchema}
|
|
21
|
-
}
|
|
22
|
-
user {
|
|
23
|
-
${Basic_1.BasicUserSchema}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RankingSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `RankingSchema` is a string representing the GraphQL schema for a ranking.
|
|
6
|
-
* It includes the id, rank, type, format, year, season, all-time status, and context.
|
|
7
|
-
*/
|
|
8
|
-
exports.RankingSchema = `
|
|
9
|
-
rankings {
|
|
10
|
-
id
|
|
11
|
-
rank
|
|
12
|
-
type
|
|
13
|
-
format
|
|
14
|
-
year
|
|
15
|
-
season
|
|
16
|
-
allTime
|
|
17
|
-
context
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SiteTrendConnectionSchema = exports.SiteTrendSchema = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* `SiteTrendSchema` is a string representing the GraphQL schema for a site trend.
|
|
6
|
-
* It includes the date, count, and change.
|
|
7
|
-
*/
|
|
8
|
-
exports.SiteTrendSchema = `
|
|
9
|
-
date
|
|
10
|
-
count
|
|
11
|
-
change
|
|
12
|
-
`;
|
|
13
|
-
/**
|
|
14
|
-
* `SiteTrendConnectionSchema` is a string representing the GraphQL schema for a site trend connection.
|
|
15
|
-
* It includes the page information and the edges and nodes of the site trends.
|
|
16
|
-
*/
|
|
17
|
-
exports.SiteTrendConnectionSchema = `
|
|
18
|
-
pageInfo {
|
|
19
|
-
total
|
|
20
|
-
perPage
|
|
21
|
-
currentPage
|
|
22
|
-
lastPage
|
|
23
|
-
hasNextPage
|
|
24
|
-
}
|
|
25
|
-
edges {
|
|
26
|
-
node {
|
|
27
|
-
${exports.SiteTrendSchema}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
nodes {
|
|
31
|
-
${exports.SiteTrendSchema}
|
|
32
|
-
}
|
|
33
|
-
`;
|