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
package/README.md
CHANGED
package/dist/AniLink.js
CHANGED
|
@@ -59,6 +59,9 @@ const SaveActivityReply_1 = require("./apis/anilist/mutation/SaveActivityReply")
|
|
|
59
59
|
const DeleteActivityReply_1 = require("./apis/anilist/mutation/DeleteActivityReply");
|
|
60
60
|
const ToggleLike_1 = require("./apis/anilist/mutation/ToggleLike");
|
|
61
61
|
const ToggleLikeV2_1 = require("./apis/anilist/mutation/ToggleLikeV2");
|
|
62
|
+
const ToggleFollow_1 = require("./apis/anilist/mutation/ToggleFollow");
|
|
63
|
+
const ToggleFavourite_1 = require("./apis/anilist/mutation/ToggleFavourite");
|
|
64
|
+
const UpdateFavouriteOrder_1 = require("./apis/anilist/mutation/UpdateFavouriteOrder");
|
|
62
65
|
/**
|
|
63
66
|
* `AniLink` is a class for interacting with the APIs.
|
|
64
67
|
* It provides methods for querying and mutating data.
|
|
@@ -134,6 +137,9 @@ class AniLink {
|
|
|
134
137
|
const deleteActivityReplyMutationInstance = new DeleteActivityReply_1.DeleteActivityReplyMutation(authToken);
|
|
135
138
|
const toggleLikeMutationInstance = new ToggleLike_1.ToggleLikeMutation(authToken);
|
|
136
139
|
const toggleLikeV2MutationInstance = new ToggleLikeV2_1.ToggleLikeV2Mutation(authToken);
|
|
140
|
+
const toggleFollowMutationInstance = new ToggleFollow_1.ToggleFollowMutation(authToken);
|
|
141
|
+
const toggleFavouriteMutationInstance = new ToggleFavourite_1.ToggleFavouriteMutation(authToken);
|
|
142
|
+
const updateFavouriteOrderMutationInstance = new UpdateFavouriteOrder_1.UpdateFavouriteOrderMutation(authToken);
|
|
137
143
|
this.anilist = {
|
|
138
144
|
query: {
|
|
139
145
|
user: userQueryInstance.user.bind(userQueryInstance),
|
|
@@ -197,7 +203,10 @@ class AniLink {
|
|
|
197
203
|
saveActivityReply: saveActivityReplyMutationInstance.saveActivityReply.bind(saveActivityReplyMutationInstance),
|
|
198
204
|
deleteActivityReply: deleteActivityReplyMutationInstance.deleteActivityReply.bind(deleteActivityReplyMutationInstance),
|
|
199
205
|
toggleLike: toggleLikeMutationInstance.toggleLike.bind(toggleLikeMutationInstance),
|
|
200
|
-
toggleLikeV2: toggleLikeV2MutationInstance.toggleLikeV2.bind(toggleLikeV2MutationInstance)
|
|
206
|
+
toggleLikeV2: toggleLikeV2MutationInstance.toggleLikeV2.bind(toggleLikeV2MutationInstance),
|
|
207
|
+
toggleFollow: toggleFollowMutationInstance.toggleFollow.bind(toggleFollowMutationInstance),
|
|
208
|
+
toggleFavourite: toggleFavouriteMutationInstance.toggleFavourite.bind(toggleFavouriteMutationInstance),
|
|
209
|
+
updateFavouriteOrder: updateFavouriteOrderMutationInstance.updateFavouriteOrder.bind(updateFavouriteOrderMutationInstance)
|
|
201
210
|
}
|
|
202
211
|
};
|
|
203
212
|
}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActivitySchema = exports.ListActivitySchema = exports.TextActivitySchema = exports.ActivityWithRepliesSchema = exports.ActivitySchemaV2 = exports.ActivitySchema = void 0;
|
|
4
|
-
const
|
|
5
|
-
const ActivityReply_1 = require("./ActivityReply");
|
|
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");
|
|
6
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
|
+
`;
|
|
7
25
|
/**
|
|
8
26
|
* `ActivitySchema` is a constant representing the GraphQL schema for an activity query.
|
|
9
27
|
* It includes the TextActivity, ListActivity, and MessageActivity each having their own properties.
|
|
@@ -78,13 +96,13 @@ exports.ActivitySchemaV2 = `
|
|
|
78
96
|
isPinned
|
|
79
97
|
createdAt
|
|
80
98
|
user {
|
|
81
|
-
${
|
|
99
|
+
${Basic_1.BasicUserSchema}
|
|
82
100
|
}
|
|
83
101
|
replies {
|
|
84
|
-
${
|
|
102
|
+
${exports.ActivityReplySchema}
|
|
85
103
|
}
|
|
86
104
|
likes {
|
|
87
|
-
${
|
|
105
|
+
${Basic_1.BasicUserSchema}
|
|
88
106
|
}
|
|
89
107
|
}
|
|
90
108
|
... on ListActivity {
|
|
@@ -109,13 +127,13 @@ exports.ActivitySchemaV2 = `
|
|
|
109
127
|
}
|
|
110
128
|
}
|
|
111
129
|
user {
|
|
112
|
-
${
|
|
130
|
+
${Basic_1.BasicUserSchema}
|
|
113
131
|
}
|
|
114
132
|
replies {
|
|
115
|
-
${
|
|
133
|
+
${exports.ActivityReplySchema}
|
|
116
134
|
}
|
|
117
135
|
likes {
|
|
118
|
-
${
|
|
136
|
+
${Basic_1.BasicUserSchema}
|
|
119
137
|
}
|
|
120
138
|
}
|
|
121
139
|
... on MessageActivity {
|
|
@@ -133,16 +151,16 @@ exports.ActivitySchemaV2 = `
|
|
|
133
151
|
siteUrl
|
|
134
152
|
createdAt
|
|
135
153
|
recipient {
|
|
136
|
-
${
|
|
154
|
+
${Basic_1.BasicUserSchema}
|
|
137
155
|
}
|
|
138
156
|
messenger {
|
|
139
|
-
${
|
|
157
|
+
${Basic_1.BasicUserSchema}
|
|
140
158
|
}
|
|
141
159
|
replies {
|
|
142
|
-
${
|
|
160
|
+
${exports.ActivityReplySchema}
|
|
143
161
|
}
|
|
144
162
|
likes {
|
|
145
|
-
${
|
|
163
|
+
${Basic_1.BasicUserSchema}
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
166
|
... on ActivityReply {
|
|
@@ -154,10 +172,10 @@ exports.ActivitySchemaV2 = `
|
|
|
154
172
|
isLiked
|
|
155
173
|
createdAt
|
|
156
174
|
user {
|
|
157
|
-
${
|
|
175
|
+
${Basic_1.BasicUserSchema}
|
|
158
176
|
}
|
|
159
177
|
likes {
|
|
160
|
-
${
|
|
178
|
+
${Basic_1.BasicUserSchema}
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
... on Thread {
|
|
@@ -178,13 +196,13 @@ exports.ActivitySchemaV2 = `
|
|
|
178
196
|
createdAt
|
|
179
197
|
updatedAt
|
|
180
198
|
user {
|
|
181
|
-
${
|
|
199
|
+
${Basic_1.BasicUserSchema}
|
|
182
200
|
}
|
|
183
201
|
replyUser {
|
|
184
|
-
${
|
|
202
|
+
${Basic_1.BasicUserSchema}
|
|
185
203
|
}
|
|
186
204
|
likes {
|
|
187
|
-
${
|
|
205
|
+
${Basic_1.BasicUserSchema}
|
|
188
206
|
}
|
|
189
207
|
siteUrl
|
|
190
208
|
categories {
|
|
@@ -211,10 +229,10 @@ exports.ActivitySchemaV2 = `
|
|
|
211
229
|
title
|
|
212
230
|
}
|
|
213
231
|
user {
|
|
214
|
-
${
|
|
232
|
+
${Basic_1.BasicUserSchema}
|
|
215
233
|
}
|
|
216
234
|
likes {
|
|
217
|
-
${
|
|
235
|
+
${Basic_1.BasicUserSchema}
|
|
218
236
|
}
|
|
219
237
|
childComments
|
|
220
238
|
isLocked
|
|
@@ -239,13 +257,13 @@ exports.ActivityWithRepliesSchema = `
|
|
|
239
257
|
isPinned
|
|
240
258
|
createdAt
|
|
241
259
|
user {
|
|
242
|
-
${
|
|
260
|
+
${Basic_1.BasicUserSchema}
|
|
243
261
|
}
|
|
244
262
|
replies {
|
|
245
|
-
${
|
|
263
|
+
${exports.ActivityReplySchema}
|
|
246
264
|
}
|
|
247
265
|
likes {
|
|
248
|
-
${
|
|
266
|
+
${Basic_1.BasicUserSchema}
|
|
249
267
|
}
|
|
250
268
|
}
|
|
251
269
|
... on ListActivity {
|
|
@@ -270,13 +288,13 @@ exports.ActivityWithRepliesSchema = `
|
|
|
270
288
|
}
|
|
271
289
|
}
|
|
272
290
|
user {
|
|
273
|
-
${
|
|
291
|
+
${Basic_1.BasicUserSchema}
|
|
274
292
|
}
|
|
275
293
|
replies {
|
|
276
|
-
${
|
|
294
|
+
${exports.ActivityReplySchema}
|
|
277
295
|
}
|
|
278
296
|
likes {
|
|
279
|
-
${
|
|
297
|
+
${Basic_1.BasicUserSchema}
|
|
280
298
|
}
|
|
281
299
|
}
|
|
282
300
|
... on MessageActivity {
|
|
@@ -294,16 +312,16 @@ exports.ActivityWithRepliesSchema = `
|
|
|
294
312
|
siteUrl
|
|
295
313
|
createdAt
|
|
296
314
|
recipient {
|
|
297
|
-
${
|
|
315
|
+
${Basic_1.BasicUserSchema}
|
|
298
316
|
}
|
|
299
317
|
messenger {
|
|
300
|
-
${
|
|
318
|
+
${Basic_1.BasicUserSchema}
|
|
301
319
|
}
|
|
302
320
|
replies {
|
|
303
|
-
${
|
|
321
|
+
${exports.ActivityReplySchema}
|
|
304
322
|
}
|
|
305
323
|
likes {
|
|
306
|
-
${
|
|
324
|
+
${Basic_1.BasicUserSchema}
|
|
307
325
|
}
|
|
308
326
|
}
|
|
309
327
|
`;
|
|
@@ -325,13 +343,13 @@ exports.TextActivitySchema = `
|
|
|
325
343
|
isPinned
|
|
326
344
|
createdAt
|
|
327
345
|
user {
|
|
328
|
-
${
|
|
346
|
+
${Basic_1.BasicUserSchema}
|
|
329
347
|
}
|
|
330
348
|
replies {
|
|
331
|
-
${
|
|
349
|
+
${exports.ActivityReplySchema}
|
|
332
350
|
}
|
|
333
351
|
likes {
|
|
334
|
-
${
|
|
352
|
+
${Basic_1.BasicUserSchema}
|
|
335
353
|
}
|
|
336
354
|
`;
|
|
337
355
|
/**
|
|
@@ -360,13 +378,13 @@ exports.ListActivitySchema = `
|
|
|
360
378
|
}
|
|
361
379
|
}
|
|
362
380
|
user {
|
|
363
|
-
${
|
|
381
|
+
${Basic_1.BasicUserSchema}
|
|
364
382
|
}
|
|
365
383
|
replies {
|
|
366
|
-
${
|
|
384
|
+
${exports.ActivityReplySchema}
|
|
367
385
|
}
|
|
368
386
|
likes {
|
|
369
|
-
${
|
|
387
|
+
${Basic_1.BasicUserSchema}
|
|
370
388
|
}
|
|
371
389
|
`;
|
|
372
390
|
/**
|
|
@@ -388,15 +406,31 @@ exports.MessageActivitySchema = `
|
|
|
388
406
|
siteUrl
|
|
389
407
|
createdAt
|
|
390
408
|
recipient {
|
|
391
|
-
${
|
|
409
|
+
${Basic_1.BasicUserSchema}
|
|
392
410
|
}
|
|
393
411
|
messenger {
|
|
394
|
-
${
|
|
412
|
+
${Basic_1.BasicUserSchema}
|
|
395
413
|
}
|
|
396
414
|
replies {
|
|
397
|
-
${
|
|
415
|
+
${exports.ActivityReplySchema}
|
|
398
416
|
}
|
|
399
417
|
likes {
|
|
400
|
-
${
|
|
418
|
+
${Basic_1.BasicUserSchema}
|
|
401
419
|
}
|
|
402
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
|
+
`;
|
|
@@ -0,0 +1,33 @@
|
|
|
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,2 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
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,2 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
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,2 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SiteTrendSchema = void 0;
|
|
3
|
+
exports.SiteTrendConnectionSchema = exports.SiteTrendSchema = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* `SiteTrendSchema` is a string representing the GraphQL schema for a site trend.
|
|
6
6
|
* It includes the date, count, and change.
|
|
@@ -10,3 +10,24 @@ exports.SiteTrendSchema = `
|
|
|
10
10
|
count
|
|
11
11
|
change
|
|
12
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
|
+
`;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FavouritesSchema = void 0;
|
|
4
|
+
const Title_1 = require("../../Title");
|
|
5
|
+
/**
|
|
6
|
+
* `FavouritesSchema` is a constant representing the GraphQL schema for a favourites query.
|
|
7
|
+
* It includes the anime, manga, characters, staff, and studios schema.
|
|
8
|
+
*/
|
|
9
|
+
exports.FavouritesSchema = `
|
|
10
|
+
anime {
|
|
11
|
+
edges {
|
|
12
|
+
id
|
|
13
|
+
node {
|
|
14
|
+
id
|
|
15
|
+
${Title_1.TitleSchema}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
nodes {
|
|
19
|
+
id
|
|
20
|
+
${Title_1.TitleSchema}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
manga {
|
|
24
|
+
edges {
|
|
25
|
+
id
|
|
26
|
+
node {
|
|
27
|
+
id
|
|
28
|
+
${Title_1.TitleSchema}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
nodes {
|
|
32
|
+
id
|
|
33
|
+
${Title_1.TitleSchema}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
characters {
|
|
37
|
+
edges {
|
|
38
|
+
id
|
|
39
|
+
node {
|
|
40
|
+
id
|
|
41
|
+
name {
|
|
42
|
+
full
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
nodes {
|
|
47
|
+
id
|
|
48
|
+
name {
|
|
49
|
+
full
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
staff {
|
|
54
|
+
edges {
|
|
55
|
+
id
|
|
56
|
+
node {
|
|
57
|
+
id
|
|
58
|
+
name {
|
|
59
|
+
full
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
nodes {
|
|
64
|
+
id
|
|
65
|
+
name {
|
|
66
|
+
full
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
studios {
|
|
71
|
+
edges {
|
|
72
|
+
id
|
|
73
|
+
node {
|
|
74
|
+
id
|
|
75
|
+
name
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
nodes {
|
|
79
|
+
id
|
|
80
|
+
name
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
@@ -10,11 +10,10 @@ const NextAiringEpisode_1 = require("../../NextAiringEpisode");
|
|
|
10
10
|
const ExternalLink_1 = require("../../ExternalLink");
|
|
11
11
|
const StreamingEpisode_1 = require("../../StreamingEpisode");
|
|
12
12
|
const Ranking_1 = require("../../Ranking");
|
|
13
|
-
const MediaListEntry_1 = require("../../MediaListEntry");
|
|
14
13
|
const Name_1 = require("../../Name");
|
|
15
14
|
const Image_1 = require("../../Image");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
15
|
+
const Media_1 = require("../../Media");
|
|
16
|
+
const Distribution_1 = require("../../Distribution");
|
|
18
17
|
/**
|
|
19
18
|
* `MediaWithRelationsSchema` is a constant representing the GraphQL schema for a media query with relations.
|
|
20
19
|
* It includes the media's id, idMal, title, type, format, status, description, startDate, endDate, season, seasonYear, seasonInt, episodes, duration, chapters, volumes, countryOfOrigin, isLicensed, source, hashtag, trailer, updatedAt, coverImage, bannerImage, genres, synonyms, averageScore, meanScore, popularity, isLocked, trending, favourites, tags, relations, characters, staff, studios, isFavourite, isAdult, nextAiringEpisode, externalLinks, streamingEpisodes, rankings, mediaListEntry, stats, siteUrl, autoCreateForumThread, isRecommendationBlocked, and modNotes.
|
|
@@ -146,10 +145,10 @@ exports.MediaWithRelationsSchema = `
|
|
|
146
145
|
${ExternalLink_1.ExternalLinkSchema}
|
|
147
146
|
${StreamingEpisode_1.StreamingEpisodeSchema}
|
|
148
147
|
${Ranking_1.RankingSchema}
|
|
149
|
-
${
|
|
148
|
+
${Media_1.MediaListEntrySchema}
|
|
150
149
|
stats {
|
|
151
|
-
${
|
|
152
|
-
${
|
|
150
|
+
${Distribution_1.StatusDistributionSchema}
|
|
151
|
+
${Distribution_1.ScoreDistributionSchema}
|
|
153
152
|
}
|
|
154
153
|
siteUrl
|
|
155
154
|
autoCreateForumThread
|
|
@@ -206,10 +205,10 @@ exports.MediaSchema = `
|
|
|
206
205
|
${ExternalLink_1.ExternalLinkSchema}
|
|
207
206
|
${StreamingEpisode_1.StreamingEpisodeSchema}
|
|
208
207
|
${Ranking_1.RankingSchema}
|
|
209
|
-
${
|
|
208
|
+
${Media_1.MediaListEntrySchema}
|
|
210
209
|
stats {
|
|
211
|
-
${
|
|
212
|
-
${
|
|
210
|
+
${Distribution_1.StatusDistributionSchema}
|
|
211
|
+
${Distribution_1.ScoreDistributionSchema}
|
|
213
212
|
}
|
|
214
213
|
siteUrl
|
|
215
214
|
autoCreateForumThread
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationSchema = void 0;
|
|
4
4
|
const Title_1 = require("../../Title");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const BasicComment_1 = require("../../BasicComment");
|
|
9
|
-
const ThreadNotification_1 = require("../../ThreadNotification");
|
|
5
|
+
const Basic_1 = require("../../Basic");
|
|
6
|
+
const Activity_1 = require("../../Activity");
|
|
7
|
+
const Notification_1 = require("../../Notification");
|
|
10
8
|
/**
|
|
11
9
|
* `NotificationSchema` is a constant representing the GraphQL schema for a notification query.
|
|
12
10
|
* It includes various types of notifications such as AiringNotification, FollowingNotification, ActivityMessageNotification, ActivityMentionNotification, ActivityReplyNotification, ActivityReplySubscribedNotification, ActivityLikeNotification, ActivityReplyLikeNotification, ThreadCommentMentionNotification, ThreadCommentReplyNotification, ThreadCommentSubscribedNotification, ThreadCommentLikeNotification, ThreadLikeNotification, RelatedMediaAdditionNotification, MediaDataChangeNotification, MediaMergeNotification, and MediaDeletionNotification.
|
|
@@ -31,7 +29,7 @@ exports.NotificationSchema = `
|
|
|
31
29
|
context
|
|
32
30
|
createdAt
|
|
33
31
|
user {
|
|
34
|
-
${
|
|
32
|
+
${Basic_1.BasicUserSchema}
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
... on ActivityMessageNotification {
|
|
@@ -64,46 +62,46 @@ exports.NotificationSchema = `
|
|
|
64
62
|
likeCount
|
|
65
63
|
isLiked
|
|
66
64
|
user {
|
|
67
|
-
${
|
|
65
|
+
${Basic_1.BasicUserSchema}
|
|
68
66
|
}
|
|
69
67
|
likes {
|
|
70
|
-
${
|
|
68
|
+
${Basic_1.BasicUserSchema}
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
likes {
|
|
74
|
-
${
|
|
72
|
+
${Basic_1.BasicUserSchema}
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
user {
|
|
78
|
-
${
|
|
76
|
+
${Basic_1.BasicUserSchema}
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
79
|
... on ActivityMentionNotification {
|
|
82
|
-
${
|
|
80
|
+
${Activity_1.ActivityNotificationSchema}
|
|
83
81
|
}
|
|
84
82
|
... on ActivityReplyNotification {
|
|
85
|
-
${
|
|
83
|
+
${Activity_1.ActivityNotificationSchema}
|
|
86
84
|
}
|
|
87
85
|
... on ActivityReplySubscribedNotification {
|
|
88
|
-
${
|
|
86
|
+
${Activity_1.ActivityNotificationSchema}
|
|
89
87
|
}
|
|
90
88
|
... on ActivityLikeNotification {
|
|
91
|
-
${
|
|
89
|
+
${Activity_1.ActivityNotificationSchema}
|
|
92
90
|
}
|
|
93
91
|
... on ActivityReplyLikeNotification {
|
|
94
|
-
${
|
|
92
|
+
${Activity_1.ActivityNotificationSchema}
|
|
95
93
|
}
|
|
96
94
|
... on ThreadCommentMentionNotification {
|
|
97
|
-
${
|
|
95
|
+
${Notification_1.ThreadNotificationSchema}
|
|
98
96
|
}
|
|
99
97
|
... on ThreadCommentReplyNotification {
|
|
100
|
-
${
|
|
98
|
+
${Notification_1.ThreadNotificationSchema}
|
|
101
99
|
}
|
|
102
100
|
... on ThreadCommentSubscribedNotification {
|
|
103
|
-
${
|
|
101
|
+
${Notification_1.ThreadNotificationSchema}
|
|
104
102
|
}
|
|
105
103
|
... on ThreadCommentLikeNotification {
|
|
106
|
-
${
|
|
104
|
+
${Notification_1.ThreadNotificationSchema}
|
|
107
105
|
}
|
|
108
106
|
... on ThreadLikeNotification {
|
|
109
107
|
id
|
|
@@ -112,13 +110,13 @@ exports.NotificationSchema = `
|
|
|
112
110
|
context
|
|
113
111
|
createdAt
|
|
114
112
|
thread {
|
|
115
|
-
${
|
|
113
|
+
${Basic_1.BasicThreadSchema}
|
|
116
114
|
}
|
|
117
115
|
comment {
|
|
118
|
-
${
|
|
116
|
+
${Basic_1.BasicCommentSchema}
|
|
119
117
|
}
|
|
120
118
|
user {
|
|
121
|
-
${
|
|
119
|
+
${Basic_1.BasicUserSchema}
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
122
|
... on RelatedMediaAdditionNotification {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecommendationSchema = void 0;
|
|
4
|
-
const BasicUser_1 = require("../../BasicUser");
|
|
5
4
|
const Media_1 = require("./Media");
|
|
5
|
+
const Basic_1 = require("../../Basic");
|
|
6
6
|
/**
|
|
7
7
|
* `RecommendationSchema` is a constant representing the GraphQL schema for a recommendation query.
|
|
8
8
|
* It includes the id, rating, user rating, media of type `MediaResponse`, media recommendation of type `MediaResponse`, and user of type `BasicUser`.
|
|
@@ -18,6 +18,6 @@ exports.RecommendationSchema = `
|
|
|
18
18
|
${Media_1.MediaSchema}
|
|
19
19
|
}
|
|
20
20
|
user {
|
|
21
|
-
${
|
|
21
|
+
${Basic_1.BasicUserSchema}
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReviewSchema = void 0;
|
|
4
|
-
const BasicUser_1 = require("../../BasicUser");
|
|
5
4
|
const Media_1 = require("./Media");
|
|
5
|
+
const Basic_1 = require("../../Basic");
|
|
6
6
|
/**
|
|
7
7
|
* `ReviewSchema` is a constant representing the GraphQL schema for a review query.
|
|
8
8
|
* It includes the id, mediaId, userId, mediaType, summary, body, rating, ratingAmount, score, private status, siteUrl, createdAt, updatedAt, user of type `BasicUser`, and media of type `Media`.
|
|
@@ -22,7 +22,7 @@ exports.ReviewSchema = `
|
|
|
22
22
|
createdAt
|
|
23
23
|
updatedAt
|
|
24
24
|
user {
|
|
25
|
-
${
|
|
25
|
+
${Basic_1.BasicUserSchema}
|
|
26
26
|
}
|
|
27
27
|
media {
|
|
28
28
|
${Media_1.MediaSchema}
|