anilink-api-wrapper 1.23.0 → 1.25.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.
Files changed (39) hide show
  1. package/README.md +4 -0
  2. package/dist/AniLink.js +10 -1
  3. package/dist/apis/anilist/interfaces/Activity.js +215 -23
  4. package/dist/apis/anilist/interfaces/Basic.js +33 -0
  5. package/dist/apis/anilist/interfaces/Distribution.js +21 -0
  6. package/dist/apis/anilist/interfaces/Media.js +11 -0
  7. package/dist/apis/anilist/interfaces/Notification.js +23 -0
  8. package/dist/apis/anilist/interfaces/SiteTrend.js +22 -1
  9. package/dist/apis/anilist/interfaces/responses/query/Media.js +8 -9
  10. package/dist/apis/anilist/interfaces/responses/query/Notification.js +20 -22
  11. package/dist/apis/anilist/interfaces/responses/query/Recommendation.js +2 -2
  12. package/dist/apis/anilist/interfaces/responses/query/Review.js +2 -2
  13. package/dist/apis/anilist/interfaces/responses/query/SiteStatistics.js +8 -8
  14. package/dist/apis/anilist/interfaces/responses/query/Thread.js +4 -4
  15. package/dist/apis/anilist/interfaces/responses/query/ThreadComment.js +3 -3
  16. package/dist/apis/anilist/mutation/DeleteActivity.js +1 -1
  17. package/dist/apis/anilist/mutation/DeleteActivityReply.js +61 -0
  18. package/dist/apis/anilist/mutation/SaveActivityReply.js +2 -2
  19. package/dist/apis/anilist/mutation/ToggleLike.js +64 -0
  20. package/dist/apis/anilist/mutation/ToggleLikeV2.js +64 -0
  21. package/dist/apis/anilist/query/ActivityReply.js +2 -2
  22. package/dist/apis/anilist/query/AniChartUser.js +2 -2
  23. package/dist/apis/anilist/query/Markdown.js +2 -2
  24. package/dist/apis/anilist/query/page/ActivityReplies.js +2 -2
  25. package/dist/apis/anilist/query/page/Likes.js +2 -2
  26. package/package.json +46 -46
  27. package/dist/apis/anilist/interfaces/ActivityHistory.js +0 -2
  28. package/dist/apis/anilist/interfaces/ActivityNotification.js +0 -21
  29. package/dist/apis/anilist/interfaces/ActivityReply.js +0 -23
  30. package/dist/apis/anilist/interfaces/BasicComment.js +0 -12
  31. package/dist/apis/anilist/interfaces/BasicThread.js +0 -13
  32. package/dist/apis/anilist/interfaces/BasicUser.js +0 -14
  33. package/dist/apis/anilist/interfaces/MediaListEntry.js +0 -13
  34. package/dist/apis/anilist/interfaces/MediaStatistics.js +0 -2
  35. package/dist/apis/anilist/interfaces/MediaStats.js +0 -2
  36. package/dist/apis/anilist/interfaces/ScoreDistribution.js +0 -13
  37. package/dist/apis/anilist/interfaces/SiteTrendConnection.js +0 -25
  38. package/dist/apis/anilist/interfaces/StatusDistribution.js +0 -13
  39. package/dist/apis/anilist/interfaces/ThreadNotification.js +0 -27
package/README.md CHANGED
@@ -122,6 +122,10 @@ List of methods in `anilist.mutation`:
122
122
  - deleteActivity
123
123
  - toggleActivityPin
124
124
  - toggleActivitySubscription
125
+ - saveActivityReply
126
+ - deleteActivityReply
127
+ - toggleLike
128
+ - toggleLikeV2
125
129
 
126
130
  ### Error Handling
127
131
 
package/dist/AniLink.js CHANGED
@@ -56,6 +56,9 @@ const DeleteActivity_1 = require("./apis/anilist/mutation/DeleteActivity");
56
56
  const ToggleActivitySubscription_1 = require("./apis/anilist/mutation/ToggleActivitySubscription");
57
57
  const ToggleActivityPin_1 = require("./apis/anilist/mutation/ToggleActivityPin");
58
58
  const SaveActivityReply_1 = require("./apis/anilist/mutation/SaveActivityReply");
59
+ const DeleteActivityReply_1 = require("./apis/anilist/mutation/DeleteActivityReply");
60
+ const ToggleLike_1 = require("./apis/anilist/mutation/ToggleLike");
61
+ const ToggleLikeV2_1 = require("./apis/anilist/mutation/ToggleLikeV2");
59
62
  /**
60
63
  * `AniLink` is a class for interacting with the APIs.
61
64
  * It provides methods for querying and mutating data.
@@ -128,6 +131,9 @@ class AniLink {
128
131
  const toggleActivityPinMutationInstance = new ToggleActivityPin_1.ToggleActivityPinMutation(authToken);
129
132
  const toggleActivitySubscriptionMutationInstance = new ToggleActivitySubscription_1.ToggleActivitySubscriptionMutation(authToken);
130
133
  const saveActivityReplyMutationInstance = new SaveActivityReply_1.SaveActivityReplyMutation(authToken);
134
+ const deleteActivityReplyMutationInstance = new DeleteActivityReply_1.DeleteActivityReplyMutation(authToken);
135
+ const toggleLikeMutationInstance = new ToggleLike_1.ToggleLikeMutation(authToken);
136
+ const toggleLikeV2MutationInstance = new ToggleLikeV2_1.ToggleLikeV2Mutation(authToken);
131
137
  this.anilist = {
132
138
  query: {
133
139
  user: userQueryInstance.user.bind(userQueryInstance),
@@ -188,7 +194,10 @@ class AniLink {
188
194
  deleteActivity: deleteActivityMutationInstance.deleteActivity.bind(deleteActivityMutationInstance),
189
195
  toggleActivityPin: toggleActivityPinMutationInstance.toggleActivityPin.bind(toggleActivityPinMutationInstance),
190
196
  toggleActivitySubscription: toggleActivitySubscriptionMutationInstance.toggleActivitySubscription.bind(toggleActivitySubscriptionMutationInstance),
191
- saveActivityReply: saveActivityReplyMutationInstance.saveActivityReply.bind(saveActivityReplyMutationInstance)
197
+ saveActivityReply: saveActivityReplyMutationInstance.saveActivityReply.bind(saveActivityReplyMutationInstance),
198
+ deleteActivityReply: deleteActivityReplyMutationInstance.deleteActivityReply.bind(deleteActivityReplyMutationInstance),
199
+ toggleLike: toggleLikeMutationInstance.toggleLike.bind(toggleLikeMutationInstance),
200
+ toggleLikeV2: toggleLikeV2MutationInstance.toggleLikeV2.bind(toggleLikeV2MutationInstance)
192
201
  }
193
202
  };
194
203
  }
@@ -1,8 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageActivitySchema = exports.ListActivitySchema = exports.TextActivitySchema = exports.ActivityWithRepliesSchema = exports.ActivitySchema = void 0;
4
- const BasicUser_1 = require("./BasicUser");
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");
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
+ `;
6
25
  /**
7
26
  * `ActivitySchema` is a constant representing the GraphQL schema for an activity query.
8
27
  * It includes the TextActivity, ListActivity, and MessageActivity each having their own properties.
@@ -62,6 +81,163 @@ exports.ActivitySchema = `
62
81
  }
63
82
  }
64
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
+ `;
65
241
  /**
66
242
  * `ActivityWithRepliesSchema` is a constant representing the GraphQL schema for an activity query with replies.
67
243
  * It includes the TextActivity, ListActivity, and MessageActivity each having their own properties and replies.
@@ -81,13 +257,13 @@ exports.ActivityWithRepliesSchema = `
81
257
  isPinned
82
258
  createdAt
83
259
  user {
84
- ${BasicUser_1.BasicUserSchema}
260
+ ${Basic_1.BasicUserSchema}
85
261
  }
86
262
  replies {
87
- ${ActivityReply_1.ActivityReplySchema}
263
+ ${exports.ActivityReplySchema}
88
264
  }
89
265
  likes {
90
- ${BasicUser_1.BasicUserSchema}
266
+ ${Basic_1.BasicUserSchema}
91
267
  }
92
268
  }
93
269
  ... on ListActivity {
@@ -112,13 +288,13 @@ exports.ActivityWithRepliesSchema = `
112
288
  }
113
289
  }
114
290
  user {
115
- ${BasicUser_1.BasicUserSchema}
291
+ ${Basic_1.BasicUserSchema}
116
292
  }
117
293
  replies {
118
- ${ActivityReply_1.ActivityReplySchema}
294
+ ${exports.ActivityReplySchema}
119
295
  }
120
296
  likes {
121
- ${BasicUser_1.BasicUserSchema}
297
+ ${Basic_1.BasicUserSchema}
122
298
  }
123
299
  }
124
300
  ... on MessageActivity {
@@ -136,16 +312,16 @@ exports.ActivityWithRepliesSchema = `
136
312
  siteUrl
137
313
  createdAt
138
314
  recipient {
139
- ${BasicUser_1.BasicUserSchema}
315
+ ${Basic_1.BasicUserSchema}
140
316
  }
141
317
  messenger {
142
- ${BasicUser_1.BasicUserSchema}
318
+ ${Basic_1.BasicUserSchema}
143
319
  }
144
320
  replies {
145
- ${ActivityReply_1.ActivityReplySchema}
321
+ ${exports.ActivityReplySchema}
146
322
  }
147
323
  likes {
148
- ${BasicUser_1.BasicUserSchema}
324
+ ${Basic_1.BasicUserSchema}
149
325
  }
150
326
  }
151
327
  `;
@@ -167,13 +343,13 @@ exports.TextActivitySchema = `
167
343
  isPinned
168
344
  createdAt
169
345
  user {
170
- ${BasicUser_1.BasicUserSchema}
346
+ ${Basic_1.BasicUserSchema}
171
347
  }
172
348
  replies {
173
- ${ActivityReply_1.ActivityReplySchema}
349
+ ${exports.ActivityReplySchema}
174
350
  }
175
351
  likes {
176
- ${BasicUser_1.BasicUserSchema}
352
+ ${Basic_1.BasicUserSchema}
177
353
  }
178
354
  `;
179
355
  /**
@@ -202,13 +378,13 @@ exports.ListActivitySchema = `
202
378
  }
203
379
  }
204
380
  user {
205
- ${BasicUser_1.BasicUserSchema}
381
+ ${Basic_1.BasicUserSchema}
206
382
  }
207
383
  replies {
208
- ${ActivityReply_1.ActivityReplySchema}
384
+ ${exports.ActivityReplySchema}
209
385
  }
210
386
  likes {
211
- ${BasicUser_1.BasicUserSchema}
387
+ ${Basic_1.BasicUserSchema}
212
388
  }
213
389
  `;
214
390
  /**
@@ -230,15 +406,31 @@ exports.MessageActivitySchema = `
230
406
  siteUrl
231
407
  createdAt
232
408
  recipient {
233
- ${BasicUser_1.BasicUserSchema}
409
+ ${Basic_1.BasicUserSchema}
234
410
  }
235
411
  messenger {
236
- ${BasicUser_1.BasicUserSchema}
412
+ ${Basic_1.BasicUserSchema}
237
413
  }
238
414
  replies {
239
- ${ActivityReply_1.ActivityReplySchema}
415
+ ${exports.ActivityReplySchema}
240
416
  }
241
417
  likes {
242
- ${BasicUser_1.BasicUserSchema}
418
+ ${Basic_1.BasicUserSchema}
243
419
  }
244
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
+ `;
@@ -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 StatusDistribution_1 = require("../../StatusDistribution");
17
- const ScoreDistribution_1 = require("../../ScoreDistribution");
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
- ${MediaListEntry_1.MediaListEntrySchema}
148
+ ${Media_1.MediaListEntrySchema}
150
149
  stats {
151
- ${StatusDistribution_1.StatusDistributionSchema}
152
- ${ScoreDistribution_1.ScoreDistributionSchema}
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
- ${MediaListEntry_1.MediaListEntrySchema}
208
+ ${Media_1.MediaListEntrySchema}
210
209
  stats {
211
- ${StatusDistribution_1.StatusDistributionSchema}
212
- ${ScoreDistribution_1.ScoreDistributionSchema}
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 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");
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
- ${BasicUser_1.BasicUserSchema}
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
- ${BasicUser_1.BasicUserSchema}
65
+ ${Basic_1.BasicUserSchema}
68
66
  }
69
67
  likes {
70
- ${BasicUser_1.BasicUserSchema}
68
+ ${Basic_1.BasicUserSchema}
71
69
  }
72
70
  }
73
71
  likes {
74
- ${BasicUser_1.BasicUserSchema}
72
+ ${Basic_1.BasicUserSchema}
75
73
  }
76
74
  }
77
75
  user {
78
- ${BasicUser_1.BasicUserSchema}
76
+ ${Basic_1.BasicUserSchema}
79
77
  }
80
78
  }
81
79
  ... on ActivityMentionNotification {
82
- ${ActivityNotification_1.ActivityNotificationSchema}
80
+ ${Activity_1.ActivityNotificationSchema}
83
81
  }
84
82
  ... on ActivityReplyNotification {
85
- ${ActivityNotification_1.ActivityNotificationSchema}
83
+ ${Activity_1.ActivityNotificationSchema}
86
84
  }
87
85
  ... on ActivityReplySubscribedNotification {
88
- ${ActivityNotification_1.ActivityNotificationSchema}
86
+ ${Activity_1.ActivityNotificationSchema}
89
87
  }
90
88
  ... on ActivityLikeNotification {
91
- ${ActivityNotification_1.ActivityNotificationSchema}
89
+ ${Activity_1.ActivityNotificationSchema}
92
90
  }
93
91
  ... on ActivityReplyLikeNotification {
94
- ${ActivityNotification_1.ActivityNotificationSchema}
92
+ ${Activity_1.ActivityNotificationSchema}
95
93
  }
96
94
  ... on ThreadCommentMentionNotification {
97
- ${ThreadNotification_1.ThreadNotificationSchema}
95
+ ${Notification_1.ThreadNotificationSchema}
98
96
  }
99
97
  ... on ThreadCommentReplyNotification {
100
- ${ThreadNotification_1.ThreadNotificationSchema}
98
+ ${Notification_1.ThreadNotificationSchema}
101
99
  }
102
100
  ... on ThreadCommentSubscribedNotification {
103
- ${ThreadNotification_1.ThreadNotificationSchema}
101
+ ${Notification_1.ThreadNotificationSchema}
104
102
  }
105
103
  ... on ThreadCommentLikeNotification {
106
- ${ThreadNotification_1.ThreadNotificationSchema}
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
- ${BasicThread_1.BasicThreadSchema}
113
+ ${Basic_1.BasicThreadSchema}
116
114
  }
117
115
  comment {
118
- ${BasicComment_1.BasicCommentSchema}
116
+ ${Basic_1.BasicCommentSchema}
119
117
  }
120
118
  user {
121
- ${BasicUser_1.BasicUserSchema}
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
- ${BasicUser_1.BasicUserSchema}
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
- ${BasicUser_1.BasicUserSchema}
25
+ ${Basic_1.BasicUserSchema}
26
26
  }
27
27
  media {
28
28
  ${Media_1.MediaSchema}