anilink-api-wrapper 1.17.3 → 1.17.5

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 (411) hide show
  1. package/README.md +321 -0
  2. package/dist/AniLink.js +10 -0
  3. package/dist/apis/anilist/interfaces/Activity.js +8 -0
  4. package/dist/apis/anilist/interfaces/ActivityNotification.js +4 -0
  5. package/dist/apis/anilist/interfaces/ActivityReply.js +4 -0
  6. package/dist/apis/anilist/interfaces/BasicComment.js +4 -0
  7. package/dist/apis/anilist/interfaces/BasicThread.js +4 -0
  8. package/dist/apis/anilist/interfaces/BasicUser.js +4 -0
  9. package/dist/apis/anilist/interfaces/CoverImage.js +4 -0
  10. package/dist/apis/anilist/interfaces/ExternalLink.js +4 -0
  11. package/dist/apis/anilist/interfaces/FuzzyDate.js +4 -0
  12. package/dist/apis/anilist/interfaces/Image.js +4 -0
  13. package/dist/apis/anilist/interfaces/MediaListEntry.js +4 -0
  14. package/dist/apis/anilist/interfaces/Name.js +4 -0
  15. package/dist/apis/anilist/interfaces/NextAiringEpisode.js +4 -0
  16. package/dist/apis/anilist/interfaces/Ranking.js +4 -0
  17. package/dist/apis/anilist/interfaces/ScoreDistribution.js +4 -0
  18. package/dist/apis/anilist/interfaces/SiteTrend.js +4 -0
  19. package/dist/apis/anilist/interfaces/SiteTrendConnection.js +4 -0
  20. package/dist/apis/anilist/interfaces/StatusDistribution.js +4 -0
  21. package/dist/apis/anilist/interfaces/StreamingEpisode.js +4 -0
  22. package/dist/apis/anilist/interfaces/Tag.js +4 -0
  23. package/dist/apis/anilist/interfaces/ThreadNotification.js +4 -0
  24. package/dist/apis/anilist/interfaces/Title.js +4 -0
  25. package/dist/apis/anilist/interfaces/Trailer.js +4 -0
  26. package/dist/apis/anilist/interfaces/UserStats.js +8 -0
  27. package/dist/apis/anilist/interfaces/responses/query/AiringSchedule.js +4 -0
  28. package/dist/apis/anilist/interfaces/responses/query/Character.js +4 -0
  29. package/dist/apis/anilist/interfaces/responses/query/Media.js +8 -0
  30. package/dist/apis/anilist/interfaces/responses/query/MediaList.js +4 -0
  31. package/dist/apis/anilist/interfaces/responses/query/MediaListCollectionResponse.js +9 -1
  32. package/dist/apis/anilist/interfaces/responses/query/MediaTrend.js +4 -0
  33. package/dist/apis/anilist/interfaces/responses/query/Notification.js +4 -0
  34. package/dist/apis/anilist/interfaces/responses/query/Recommendation.js +4 -0
  35. package/dist/apis/anilist/interfaces/responses/query/Review.js +4 -0
  36. package/dist/apis/anilist/interfaces/responses/query/SiteStatistics.js +4 -0
  37. package/dist/apis/anilist/interfaces/responses/query/Staff.js +4 -0
  38. package/dist/apis/anilist/interfaces/responses/query/Studio.js +4 -0
  39. package/dist/apis/anilist/interfaces/responses/query/Thread.js +4 -0
  40. package/dist/apis/anilist/interfaces/responses/query/ThreadComment.js +4 -0
  41. package/dist/apis/anilist/interfaces/responses/query/User.js +4 -0
  42. package/dist/apis/anilist/mutation/SaveMediaListEntry.js +15 -0
  43. package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +15 -0
  44. package/dist/apis/anilist/mutation/UpdateUser.js +15 -0
  45. package/dist/apis/anilist/query/Activity.js +15 -0
  46. package/dist/apis/anilist/query/ActivityReply.js +15 -0
  47. package/dist/apis/anilist/query/AiringSchedule.js +15 -0
  48. package/dist/apis/anilist/query/AniChartUser.js +14 -0
  49. package/dist/apis/anilist/query/Character.js +15 -0
  50. package/dist/apis/anilist/query/ExternalLinkSourceCollection.js +17 -2
  51. package/dist/apis/anilist/query/Follower.js +15 -0
  52. package/dist/apis/anilist/query/Following.js +15 -0
  53. package/dist/apis/anilist/query/GenreCollection.js +14 -0
  54. package/dist/apis/anilist/query/Markdown.js +15 -0
  55. package/dist/apis/anilist/query/Media.js +15 -0
  56. package/dist/apis/anilist/query/MediaList.js +15 -0
  57. package/dist/apis/anilist/query/MediaListCollection.js +15 -0
  58. package/dist/apis/anilist/query/MediaTagCollection.js +17 -2
  59. package/dist/apis/anilist/query/MediaTrend.js +15 -0
  60. package/dist/apis/anilist/query/Notification.js +15 -0
  61. package/dist/apis/anilist/query/Recommendation.js +15 -0
  62. package/dist/apis/anilist/query/Review.js +15 -0
  63. package/dist/apis/anilist/query/SiteStatistics.js +17 -2
  64. package/dist/apis/anilist/query/Staff.js +15 -0
  65. package/dist/apis/anilist/query/Studio.js +15 -0
  66. package/dist/apis/anilist/query/Thread.js +15 -0
  67. package/dist/apis/anilist/query/ThreadComment.js +15 -0
  68. package/dist/apis/anilist/query/User.js +15 -0
  69. package/dist/apis/anilist/query/Viewer.js +15 -0
  70. package/dist/apis/anilist/query/page/Activities.js +15 -0
  71. package/dist/apis/anilist/query/page/ActivityReplies.js +15 -0
  72. package/dist/apis/anilist/query/page/AiringSchedules.js +15 -0
  73. package/dist/apis/anilist/query/page/Characters.js +15 -0
  74. package/dist/apis/anilist/query/page/Followers.js +15 -0
  75. package/dist/apis/anilist/query/page/Followings.js +15 -0
  76. package/dist/apis/anilist/query/page/Likes.js +15 -0
  77. package/dist/apis/anilist/query/page/MediaLists.js +15 -0
  78. package/dist/apis/anilist/query/page/MediaTrends.js +15 -0
  79. package/dist/apis/anilist/query/page/Medias.js +13 -0
  80. package/dist/apis/anilist/query/page/Notifications.js +15 -0
  81. package/dist/apis/anilist/query/page/Recommendations.js +15 -0
  82. package/dist/apis/anilist/query/page/Reviews.js +15 -0
  83. package/dist/apis/anilist/query/page/Staffs.js +15 -0
  84. package/dist/apis/anilist/query/page/Studios.js +15 -0
  85. package/dist/apis/anilist/query/page/ThreadCommments.js +15 -0
  86. package/dist/apis/anilist/query/page/Threads.js +15 -0
  87. package/dist/apis/anilist/query/page/Users.js +15 -0
  88. package/dist/base/APIWrapper.js +8 -0
  89. package/dist/base/RequestHandler.js +9 -0
  90. package/docs/.nojekyll +1 -0
  91. package/docs/assets/26e93147f10415a0ed4a.svg +6 -0
  92. package/docs/assets/75c9471662e97ee24f29.svg +7 -0
  93. package/docs/assets/db90e4df2373980c497d.svg +9 -0
  94. package/docs/assets/hierarchy.css +1 -0
  95. package/docs/assets/hierarchy.js +1 -0
  96. package/docs/assets/highlight.css +85 -0
  97. package/docs/assets/icons.js +15 -0
  98. package/docs/assets/icons.svg +1 -0
  99. package/docs/assets/main.js +59 -0
  100. package/docs/assets/navigation.js +1 -0
  101. package/docs/assets/search.js +1 -0
  102. package/docs/assets/style.css +1412 -0
  103. package/docs/classes/AniLink.AniLink.html +105 -0
  104. package/docs/classes/apis_anilist_mutation_SaveMediaListEntry.SaveMediaListEntryMutation.html +10 -0
  105. package/docs/classes/apis_anilist_mutation_UpdateMediaListEntries.UpdateMediaListEntriesMutation.html +10 -0
  106. package/docs/classes/apis_anilist_mutation_UpdateUser.UpdateUserMutation.html +10 -0
  107. package/docs/classes/apis_anilist_query_Activity.ActivityQuery.html +10 -0
  108. package/docs/classes/apis_anilist_query_ActivityReply.ActivityReplyQuery.html +10 -0
  109. package/docs/classes/apis_anilist_query_AiringSchedule.AiringScheduleQuery.html +10 -0
  110. package/docs/classes/apis_anilist_query_AniChartUser.AniChartUserQuery.html +9 -0
  111. package/docs/classes/apis_anilist_query_Character.CharacterQuery.html +10 -0
  112. package/docs/classes/apis_anilist_query_ExternalLinkSourceCollection.ExternalLinkSourceCollectionQuery.html +10 -0
  113. package/docs/classes/apis_anilist_query_Follower.FollowerQuery.html +10 -0
  114. package/docs/classes/apis_anilist_query_Following.FollowingQuery.html +10 -0
  115. package/docs/classes/apis_anilist_query_GenreCollection.GenreCollectionQuery.html +9 -0
  116. package/docs/classes/apis_anilist_query_Markdown.MarkdownQuery.html +10 -0
  117. package/docs/classes/apis_anilist_query_Media.MediaQuery.html +10 -0
  118. package/docs/classes/apis_anilist_query_MediaList.MediaListQuery.html +10 -0
  119. package/docs/classes/apis_anilist_query_MediaListCollection.MediaListCollectionQuery.html +10 -0
  120. package/docs/classes/apis_anilist_query_MediaTagCollection.MediaTagCollectionQuery.html +10 -0
  121. package/docs/classes/apis_anilist_query_MediaTrend.MediaTrendQuery.html +10 -0
  122. package/docs/classes/apis_anilist_query_Notification.NotificationQuery.html +10 -0
  123. package/docs/classes/apis_anilist_query_Recommendation.RecommendationQuery.html +10 -0
  124. package/docs/classes/apis_anilist_query_Review.ReviewQuery.html +10 -0
  125. package/docs/classes/apis_anilist_query_SiteStatistics.SiteStatisticsQuery.html +10 -0
  126. package/docs/classes/apis_anilist_query_Staff.StaffQuery.html +10 -0
  127. package/docs/classes/apis_anilist_query_Studio.StudioQuery.html +10 -0
  128. package/docs/classes/apis_anilist_query_Thread.ThreadQuery.html +10 -0
  129. package/docs/classes/apis_anilist_query_ThreadComment.ThreadCommentQuery.html +10 -0
  130. package/docs/classes/apis_anilist_query_User.UserQuery.html +10 -0
  131. package/docs/classes/apis_anilist_query_Viewer.ViewerQuery.html +10 -0
  132. package/docs/classes/apis_anilist_query_page_Activities.ActivitiesQuery.html +10 -0
  133. package/docs/classes/apis_anilist_query_page_ActivityReplies.ActivityRepliesQuery.html +10 -0
  134. package/docs/classes/apis_anilist_query_page_AiringSchedules.AiringSchedulesQuery.html +10 -0
  135. package/docs/classes/apis_anilist_query_page_Characters.CharactersQuery.html +10 -0
  136. package/docs/classes/apis_anilist_query_page_Followers.FollowersQuery.html +10 -0
  137. package/docs/classes/apis_anilist_query_page_Followings.FollowingsQuery.html +10 -0
  138. package/docs/classes/apis_anilist_query_page_Likes.LikesQuery.html +10 -0
  139. package/docs/classes/apis_anilist_query_page_MediaLists.MediaListsQuery.html +10 -0
  140. package/docs/classes/apis_anilist_query_page_MediaTrends.MediaTrendsQuery.html +10 -0
  141. package/docs/classes/apis_anilist_query_page_Medias.MediasQuery.html +10 -0
  142. package/docs/classes/apis_anilist_query_page_Notifications.NotificationsQuery.html +10 -0
  143. package/docs/classes/apis_anilist_query_page_Recommendations.RecommendationsQuery.html +10 -0
  144. package/docs/classes/apis_anilist_query_page_Reviews.ReviewsQuery.html +10 -0
  145. package/docs/classes/apis_anilist_query_page_Staffs.StaffsQuery.html +10 -0
  146. package/docs/classes/apis_anilist_query_page_Studios.StudiosQuery.html +10 -0
  147. package/docs/classes/apis_anilist_query_page_ThreadCommments.ThreadCommentsQuery.html +10 -0
  148. package/docs/classes/apis_anilist_query_page_Threads.ThreadsQuery.html +10 -0
  149. package/docs/classes/apis_anilist_query_page_Users.UsersQuery.html +10 -0
  150. package/docs/classes/base_APIWrapper.APIWrapper.html +6 -0
  151. package/docs/functions/base_RequestHandler.sendRequest.html +8 -0
  152. package/docs/hierarchy.html +1 -0
  153. package/docs/index.html +78 -0
  154. package/docs/interfaces/apis_anilist_interfaces_Activity.Activity.html +67 -0
  155. package/docs/interfaces/apis_anilist_interfaces_ActivityHistory.ActivityHistory.html +12 -0
  156. package/docs/interfaces/apis_anilist_interfaces_ActivityNotification.ActivityNotification.html +19 -0
  157. package/docs/interfaces/apis_anilist_interfaces_ActivityReply.ActivityReply.html +21 -0
  158. package/docs/interfaces/apis_anilist_interfaces_BasicComment.BasicComment.html +9 -0
  159. package/docs/interfaces/apis_anilist_interfaces_BasicThread.BasicThread.html +11 -0
  160. package/docs/interfaces/apis_anilist_interfaces_BasicUser.BasicUser.html +11 -0
  161. package/docs/interfaces/apis_anilist_interfaces_CoverImage.CoverImage.html +11 -0
  162. package/docs/interfaces/apis_anilist_interfaces_Distribution.Distribution.html +7 -0
  163. package/docs/interfaces/apis_anilist_interfaces_ExternalLink.ExternalLink.html +9 -0
  164. package/docs/interfaces/apis_anilist_interfaces_Favoured.Favoured.html +21 -0
  165. package/docs/interfaces/apis_anilist_interfaces_FuzzyDate.FuzzyDate.html +9 -0
  166. package/docs/interfaces/apis_anilist_interfaces_FuzzyDate.FuzzyDateInput.html +9 -0
  167. package/docs/interfaces/apis_anilist_interfaces_Image.Image.html +7 -0
  168. package/docs/interfaces/apis_anilist_interfaces_ListScores.ListScores.html +7 -0
  169. package/docs/interfaces/apis_anilist_interfaces_Media.Media.html +93 -0
  170. package/docs/interfaces/apis_anilist_interfaces_MediaListEntry.MediaListEntry.html +7 -0
  171. package/docs/interfaces/apis_anilist_interfaces_MediaListEntry.MediaListOptionsInput.html +11 -0
  172. package/docs/interfaces/apis_anilist_interfaces_MediaStatistics.MediaStatistics.html +41 -0
  173. package/docs/interfaces/apis_anilist_interfaces_MediaStats.MediaStats.html +7 -0
  174. package/docs/interfaces/apis_anilist_interfaces_Name.Name.html +15 -0
  175. package/docs/interfaces/apis_anilist_interfaces_NextAiringEpisode.NextAiringEpisode.html +9 -0
  176. package/docs/interfaces/apis_anilist_interfaces_Notification.NotificationOptionInput.html +7 -0
  177. package/docs/interfaces/apis_anilist_interfaces_Ranking.Ranking.html +19 -0
  178. package/docs/interfaces/apis_anilist_interfaces_ScoreDistribution.ScoreDistribution.html +7 -0
  179. package/docs/interfaces/apis_anilist_interfaces_SiteTrend.SiteTrend.html +9 -0
  180. package/docs/interfaces/apis_anilist_interfaces_SiteTrendConnection.SiteTrendConnection.html +12 -0
  181. package/docs/interfaces/apis_anilist_interfaces_Staff.Staff.html +7 -0
  182. package/docs/interfaces/apis_anilist_interfaces_Stat.Stat.html +39 -0
  183. package/docs/interfaces/apis_anilist_interfaces_Statistics.Statistics.html +7 -0
  184. package/docs/interfaces/apis_anilist_interfaces_StatusDistribution.StatusDistribution.html +7 -0
  185. package/docs/interfaces/apis_anilist_interfaces_StreamingEpisode.StreamingEpisode.html +11 -0
  186. package/docs/interfaces/apis_anilist_interfaces_Studio.Studio.html +7 -0
  187. package/docs/interfaces/apis_anilist_interfaces_Tag.Tag.html +21 -0
  188. package/docs/interfaces/apis_anilist_interfaces_ThreadNotification.ThreadNotification.html +21 -0
  189. package/docs/interfaces/apis_anilist_interfaces_Title.Title.html +11 -0
  190. package/docs/interfaces/apis_anilist_interfaces_Trailer.Trailer.html +9 -0
  191. package/docs/interfaces/apis_anilist_interfaces_UserStats.UserStats.html +37 -0
  192. package/docs/interfaces/apis_anilist_interfaces_responses_query_AiringSchedule.AiringScheduleResponse.html +15 -0
  193. package/docs/interfaces/apis_anilist_interfaces_responses_query_AniChartUser.AniChartUserResponse.html +9 -0
  194. package/docs/interfaces/apis_anilist_interfaces_responses_query_Character.CharacterResponse.html +32 -0
  195. package/docs/interfaces/apis_anilist_interfaces_responses_query_ExternalLinkSourceCollection.ExternalLinkSourceCollectionResponse.html +23 -0
  196. package/docs/interfaces/apis_anilist_interfaces_responses_query_Media.MediaResponse.html +101 -0
  197. package/docs/interfaces/apis_anilist_interfaces_responses_query_MediaList.MediaListResponse.html +43 -0
  198. package/docs/interfaces/apis_anilist_interfaces_responses_query_MediaListCollectionResponse.MediaListCollectionResponse.html +8 -0
  199. package/docs/interfaces/apis_anilist_interfaces_responses_query_MediaTagCollection.MediaTagCollectionResponse.html +5 -0
  200. package/docs/interfaces/apis_anilist_interfaces_responses_query_MediaTrend.MediaTrendResponse.html +21 -0
  201. package/docs/interfaces/apis_anilist_interfaces_responses_query_Notification.NotificationResponse.html +132 -0
  202. package/docs/interfaces/apis_anilist_interfaces_responses_query_Recommendation.RecommendationResponse.html +15 -0
  203. package/docs/interfaces/apis_anilist_interfaces_responses_query_Review.ReviewResponse.html +33 -0
  204. package/docs/interfaces/apis_anilist_interfaces_responses_query_SiteStatistics.SiteStatisticsResponse.html +17 -0
  205. package/docs/interfaces/apis_anilist_interfaces_responses_query_Staff.StaffResponse.html +62 -0
  206. package/docs/interfaces/apis_anilist_interfaces_responses_query_Studio.StudioResponse.html +18 -0
  207. package/docs/interfaces/apis_anilist_interfaces_responses_query_Thread.ThreadResponse.html +50 -0
  208. package/docs/interfaces/apis_anilist_interfaces_responses_query_ThreadComment.ThreadCommentResponse.html +31 -0
  209. package/docs/interfaces/apis_anilist_interfaces_responses_query_User.UserResponse.html +79 -0
  210. package/docs/interfaces/apis_anilist_mutation_SaveMediaListEntry.SaveMediaListEntryVariables.html +35 -0
  211. package/docs/interfaces/apis_anilist_mutation_UpdateMediaListEntries.UpdateMediaListEntriesVariables.html +31 -0
  212. package/docs/interfaces/apis_anilist_mutation_UpdateUser.UpdateUserResponse.html +62 -0
  213. package/docs/interfaces/apis_anilist_mutation_UpdateUser.UpdateUserVariables.html +35 -0
  214. package/docs/interfaces/apis_anilist_query_Activity.ActivityVariables.html +57 -0
  215. package/docs/interfaces/apis_anilist_query_ActivityReply.ActivityReplyVariables.html +9 -0
  216. package/docs/interfaces/apis_anilist_query_AiringSchedule.AiringScheduleVariables.html +43 -0
  217. package/docs/interfaces/apis_anilist_query_Character.CharacterVariables.html +27 -0
  218. package/docs/interfaces/apis_anilist_query_ExternalLinkSourceCollection.ExternalLinkSourceCollectionVariables.html +9 -0
  219. package/docs/interfaces/apis_anilist_query_Follower.FollowerVariables.html +15 -0
  220. package/docs/interfaces/apis_anilist_query_Following.FollowingVariables.html +15 -0
  221. package/docs/interfaces/apis_anilist_query_Markdown.MarkdownVariables.html +5 -0
  222. package/docs/interfaces/apis_anilist_query_Media.MediaVariables.html +143 -0
  223. package/docs/interfaces/apis_anilist_query_MediaList.MediaListVariables.html +59 -0
  224. package/docs/interfaces/apis_anilist_query_MediaListCollection.MediaListCollectionVariables.html +51 -0
  225. package/docs/interfaces/apis_anilist_query_MediaTagCollection.MediaTagCollectionVariables.html +5 -0
  226. package/docs/interfaces/apis_anilist_query_MediaTrend.MediaTrendVariables.html +55 -0
  227. package/docs/interfaces/apis_anilist_query_Notification.NotificationVariables.html +11 -0
  228. package/docs/interfaces/apis_anilist_query_Recommendation.RecommendationVariables.html +23 -0
  229. package/docs/interfaces/apis_anilist_query_Review.ReviewVariables.html +15 -0
  230. package/docs/interfaces/apis_anilist_query_SiteStatistics.SiteStatisticsVariables.html +45 -0
  231. package/docs/interfaces/apis_anilist_query_Staff.StaffVariables.html +43 -0
  232. package/docs/interfaces/apis_anilist_query_Studio.StudioVariables.html +51 -0
  233. package/docs/interfaces/apis_anilist_query_Thread.ThreadVariables.html +23 -0
  234. package/docs/interfaces/apis_anilist_query_ThreadComment.ThreadCommentVariables.html +13 -0
  235. package/docs/interfaces/apis_anilist_query_User.UserVariables.html +23 -0
  236. package/docs/interfaces/apis_anilist_query_Viewer.ViewerVariables.html +13 -0
  237. package/docs/interfaces/apis_anilist_query_page_Activities.ActivitiesVariables.html +61 -0
  238. package/docs/interfaces/apis_anilist_query_page_ActivityReplies.ActivityRepliesVariables.html +13 -0
  239. package/docs/interfaces/apis_anilist_query_page_AiringSchedules.AiringSchedulesVariables.html +47 -0
  240. package/docs/interfaces/apis_anilist_query_page_Characters.CharactersVariables.html +31 -0
  241. package/docs/interfaces/apis_anilist_query_page_Followers.FollowersVariables.html +19 -0
  242. package/docs/interfaces/apis_anilist_query_page_Followings.FollowingsVariables.html +19 -0
  243. package/docs/interfaces/apis_anilist_query_page_Likes.LikesVariables.html +11 -0
  244. package/docs/interfaces/apis_anilist_query_page_MediaLists.MediaListsVariables.html +63 -0
  245. package/docs/interfaces/apis_anilist_query_page_MediaTrends.MediaTrendsVariables.html +59 -0
  246. package/docs/interfaces/apis_anilist_query_page_Medias.MediasVariables.html +147 -0
  247. package/docs/interfaces/apis_anilist_query_page_Notifications.NotificationsVariables.html +15 -0
  248. package/docs/interfaces/apis_anilist_query_page_Recommendations.RecommendationsVariables.html +27 -0
  249. package/docs/interfaces/apis_anilist_query_page_Reviews.ReviewsVariables.html +15 -0
  250. package/docs/interfaces/apis_anilist_query_page_Staffs.StaffsVariables.html +47 -0
  251. package/docs/interfaces/apis_anilist_query_page_Studios.StudiosVariables.html +55 -0
  252. package/docs/interfaces/apis_anilist_query_page_ThreadCommments.ThreadCommentsVariables.html +17 -0
  253. package/docs/interfaces/apis_anilist_query_page_Threads.ThreadsVariables.html +27 -0
  254. package/docs/interfaces/apis_anilist_query_page_Users.UsersVariables.html +27 -0
  255. package/docs/modules/AniLink.html +2 -0
  256. package/docs/modules/apis_anilist_interfaces_Activity.html +5 -0
  257. package/docs/modules/apis_anilist_interfaces_ActivityHistory.html +2 -0
  258. package/docs/modules/apis_anilist_interfaces_ActivityNotification.html +3 -0
  259. package/docs/modules/apis_anilist_interfaces_ActivityReply.html +3 -0
  260. package/docs/modules/apis_anilist_interfaces_BasicComment.html +3 -0
  261. package/docs/modules/apis_anilist_interfaces_BasicThread.html +3 -0
  262. package/docs/modules/apis_anilist_interfaces_BasicUser.html +3 -0
  263. package/docs/modules/apis_anilist_interfaces_CoverImage.html +3 -0
  264. package/docs/modules/apis_anilist_interfaces_Distribution.html +2 -0
  265. package/docs/modules/apis_anilist_interfaces_ExternalLink.html +3 -0
  266. package/docs/modules/apis_anilist_interfaces_Favoured.html +2 -0
  267. package/docs/modules/apis_anilist_interfaces_FuzzyDate.html +4 -0
  268. package/docs/modules/apis_anilist_interfaces_Image.html +3 -0
  269. package/docs/modules/apis_anilist_interfaces_ListScores.html +2 -0
  270. package/docs/modules/apis_anilist_interfaces_Media.html +2 -0
  271. package/docs/modules/apis_anilist_interfaces_MediaListEntry.html +5 -0
  272. package/docs/modules/apis_anilist_interfaces_MediaStatistics.html +2 -0
  273. package/docs/modules/apis_anilist_interfaces_MediaStats.html +2 -0
  274. package/docs/modules/apis_anilist_interfaces_Name.html +3 -0
  275. package/docs/modules/apis_anilist_interfaces_NextAiringEpisode.html +3 -0
  276. package/docs/modules/apis_anilist_interfaces_Notification.html +2 -0
  277. package/docs/modules/apis_anilist_interfaces_Ranking.html +3 -0
  278. package/docs/modules/apis_anilist_interfaces_ScoreDistribution.html +3 -0
  279. package/docs/modules/apis_anilist_interfaces_SiteTrend.html +3 -0
  280. package/docs/modules/apis_anilist_interfaces_SiteTrendConnection.html +3 -0
  281. package/docs/modules/apis_anilist_interfaces_Staff.html +2 -0
  282. package/docs/modules/apis_anilist_interfaces_Stat.html +2 -0
  283. package/docs/modules/apis_anilist_interfaces_Statistics.html +2 -0
  284. package/docs/modules/apis_anilist_interfaces_StatusDistribution.html +3 -0
  285. package/docs/modules/apis_anilist_interfaces_StreamingEpisode.html +3 -0
  286. package/docs/modules/apis_anilist_interfaces_Studio.html +2 -0
  287. package/docs/modules/apis_anilist_interfaces_Tag.html +3 -0
  288. package/docs/modules/apis_anilist_interfaces_ThreadNotification.html +3 -0
  289. package/docs/modules/apis_anilist_interfaces_Title.html +3 -0
  290. package/docs/modules/apis_anilist_interfaces_Trailer.html +3 -0
  291. package/docs/modules/apis_anilist_interfaces_UserStats.html +4 -0
  292. package/docs/modules/apis_anilist_interfaces_responses_query_AiringSchedule.html +3 -0
  293. package/docs/modules/apis_anilist_interfaces_responses_query_AniChartUser.html +2 -0
  294. package/docs/modules/apis_anilist_interfaces_responses_query_Character.html +3 -0
  295. package/docs/modules/apis_anilist_interfaces_responses_query_ExternalLinkSourceCollection.html +2 -0
  296. package/docs/modules/apis_anilist_interfaces_responses_query_Media.html +4 -0
  297. package/docs/modules/apis_anilist_interfaces_responses_query_MediaList.html +3 -0
  298. package/docs/modules/apis_anilist_interfaces_responses_query_MediaListCollectionResponse.html +3 -0
  299. package/docs/modules/apis_anilist_interfaces_responses_query_MediaTagCollection.html +2 -0
  300. package/docs/modules/apis_anilist_interfaces_responses_query_MediaTrend.html +3 -0
  301. package/docs/modules/apis_anilist_interfaces_responses_query_Notification.html +3 -0
  302. package/docs/modules/apis_anilist_interfaces_responses_query_Recommendation.html +3 -0
  303. package/docs/modules/apis_anilist_interfaces_responses_query_Review.html +3 -0
  304. package/docs/modules/apis_anilist_interfaces_responses_query_SiteStatistics.html +3 -0
  305. package/docs/modules/apis_anilist_interfaces_responses_query_Staff.html +3 -0
  306. package/docs/modules/apis_anilist_interfaces_responses_query_Studio.html +3 -0
  307. package/docs/modules/apis_anilist_interfaces_responses_query_Thread.html +3 -0
  308. package/docs/modules/apis_anilist_interfaces_responses_query_ThreadComment.html +3 -0
  309. package/docs/modules/apis_anilist_interfaces_responses_query_User.html +3 -0
  310. package/docs/modules/apis_anilist_mutation_SaveMediaListEntry.html +3 -0
  311. package/docs/modules/apis_anilist_mutation_UpdateMediaListEntries.html +3 -0
  312. package/docs/modules/apis_anilist_mutation_UpdateUser.html +4 -0
  313. package/docs/modules/apis_anilist_query_Activity.html +3 -0
  314. package/docs/modules/apis_anilist_query_ActivityReply.html +3 -0
  315. package/docs/modules/apis_anilist_query_AiringSchedule.html +3 -0
  316. package/docs/modules/apis_anilist_query_AniChartUser.html +2 -0
  317. package/docs/modules/apis_anilist_query_Character.html +3 -0
  318. package/docs/modules/apis_anilist_query_ExternalLinkSourceCollection.html +3 -0
  319. package/docs/modules/apis_anilist_query_Follower.html +3 -0
  320. package/docs/modules/apis_anilist_query_Following.html +3 -0
  321. package/docs/modules/apis_anilist_query_GenreCollection.html +2 -0
  322. package/docs/modules/apis_anilist_query_Markdown.html +3 -0
  323. package/docs/modules/apis_anilist_query_Media.html +3 -0
  324. package/docs/modules/apis_anilist_query_MediaList.html +3 -0
  325. package/docs/modules/apis_anilist_query_MediaListCollection.html +3 -0
  326. package/docs/modules/apis_anilist_query_MediaTagCollection.html +3 -0
  327. package/docs/modules/apis_anilist_query_MediaTrend.html +3 -0
  328. package/docs/modules/apis_anilist_query_Notification.html +3 -0
  329. package/docs/modules/apis_anilist_query_Recommendation.html +3 -0
  330. package/docs/modules/apis_anilist_query_Review.html +3 -0
  331. package/docs/modules/apis_anilist_query_SiteStatistics.html +3 -0
  332. package/docs/modules/apis_anilist_query_Staff.html +3 -0
  333. package/docs/modules/apis_anilist_query_Studio.html +3 -0
  334. package/docs/modules/apis_anilist_query_Thread.html +3 -0
  335. package/docs/modules/apis_anilist_query_ThreadComment.html +3 -0
  336. package/docs/modules/apis_anilist_query_User.html +3 -0
  337. package/docs/modules/apis_anilist_query_Viewer.html +3 -0
  338. package/docs/modules/apis_anilist_query_page_Activities.html +3 -0
  339. package/docs/modules/apis_anilist_query_page_ActivityReplies.html +3 -0
  340. package/docs/modules/apis_anilist_query_page_AiringSchedules.html +3 -0
  341. package/docs/modules/apis_anilist_query_page_Characters.html +3 -0
  342. package/docs/modules/apis_anilist_query_page_Followers.html +3 -0
  343. package/docs/modules/apis_anilist_query_page_Followings.html +3 -0
  344. package/docs/modules/apis_anilist_query_page_Likes.html +3 -0
  345. package/docs/modules/apis_anilist_query_page_MediaLists.html +3 -0
  346. package/docs/modules/apis_anilist_query_page_MediaTrends.html +3 -0
  347. package/docs/modules/apis_anilist_query_page_Medias.html +3 -0
  348. package/docs/modules/apis_anilist_query_page_Notifications.html +3 -0
  349. package/docs/modules/apis_anilist_query_page_Recommendations.html +3 -0
  350. package/docs/modules/apis_anilist_query_page_Reviews.html +3 -0
  351. package/docs/modules/apis_anilist_query_page_Staffs.html +3 -0
  352. package/docs/modules/apis_anilist_query_page_Studios.html +3 -0
  353. package/docs/modules/apis_anilist_query_page_ThreadCommments.html +3 -0
  354. package/docs/modules/apis_anilist_query_page_Threads.html +3 -0
  355. package/docs/modules/apis_anilist_query_page_Users.html +3 -0
  356. package/docs/modules/apis_anilist_types_MediaListStatus.html +2 -0
  357. package/docs/modules/apis_anilist_types_ScoreFormat.html +2 -0
  358. package/docs/modules/apis_anilist_types_UserStaffNameLanguage.html +2 -0
  359. package/docs/modules/apis_anilist_types_UserTitleLanguage.html +2 -0
  360. package/docs/modules/base_APIWrapper.html +2 -0
  361. package/docs/modules/base_RequestHandler.html +2 -0
  362. package/docs/types/apis_anilist_interfaces_Activity.ListActivityOptionInput.html +3 -0
  363. package/docs/types/apis_anilist_interfaces_MediaListEntry.MediaListStatus.html +3 -0
  364. package/docs/types/apis_anilist_types_MediaListStatus.MediaListStatus.html +3 -0
  365. package/docs/types/apis_anilist_types_ScoreFormat.ScoreFormat.html +3 -0
  366. package/docs/types/apis_anilist_types_UserStaffNameLanguage.UserStaffNameLanguage.html +3 -0
  367. package/docs/types/apis_anilist_types_UserTitleLanguage.UserTitleLanguage.html +3 -0
  368. package/docs/variables/apis_anilist_interfaces_Activity.ActivitySchema.html +3 -0
  369. package/docs/variables/apis_anilist_interfaces_Activity.ActivityWithRepliesSchema.html +3 -0
  370. package/docs/variables/apis_anilist_interfaces_ActivityNotification.ActivityNotificationSchema.html +3 -0
  371. package/docs/variables/apis_anilist_interfaces_ActivityReply.ActivityReplySchema.html +3 -0
  372. package/docs/variables/apis_anilist_interfaces_BasicComment.BasicCommentSchema.html +3 -0
  373. package/docs/variables/apis_anilist_interfaces_BasicThread.BasicThreadSchema.html +3 -0
  374. package/docs/variables/apis_anilist_interfaces_BasicUser.BasicUserSchema.html +3 -0
  375. package/docs/variables/apis_anilist_interfaces_CoverImage.CoverImageSchema.html +3 -0
  376. package/docs/variables/apis_anilist_interfaces_ExternalLink.ExternalLinkSchema.html +3 -0
  377. package/docs/variables/apis_anilist_interfaces_FuzzyDate.FuzzyDateSchema.html +3 -0
  378. package/docs/variables/apis_anilist_interfaces_Image.ImageSchema.html +3 -0
  379. package/docs/variables/apis_anilist_interfaces_MediaListEntry.MediaListEntrySchema.html +3 -0
  380. package/docs/variables/apis_anilist_interfaces_Name.NameSchema.html +3 -0
  381. package/docs/variables/apis_anilist_interfaces_NextAiringEpisode.NextAiringEpisodeSchema.html +3 -0
  382. package/docs/variables/apis_anilist_interfaces_Ranking.RankingSchema.html +3 -0
  383. package/docs/variables/apis_anilist_interfaces_ScoreDistribution.ScoreDistributionSchema.html +3 -0
  384. package/docs/variables/apis_anilist_interfaces_SiteTrend.SiteTrendSchema.html +3 -0
  385. package/docs/variables/apis_anilist_interfaces_SiteTrendConnection.SiteTrendConnectionSchema.html +3 -0
  386. package/docs/variables/apis_anilist_interfaces_StatusDistribution.StatusDistributionSchema.html +3 -0
  387. package/docs/variables/apis_anilist_interfaces_StreamingEpisode.StreamingEpisodeSchema.html +3 -0
  388. package/docs/variables/apis_anilist_interfaces_Tag.TagSchema.html +3 -0
  389. package/docs/variables/apis_anilist_interfaces_ThreadNotification.ThreadNotificationSchema.html +3 -0
  390. package/docs/variables/apis_anilist_interfaces_Title.TitleSchema.html +3 -0
  391. package/docs/variables/apis_anilist_interfaces_Trailer.TrailerSchema.html +3 -0
  392. package/docs/variables/apis_anilist_interfaces_UserStats.UserAnimeStatsSchema.html +3 -0
  393. package/docs/variables/apis_anilist_interfaces_UserStats.UserMangaStatsSchema.html +3 -0
  394. package/docs/variables/apis_anilist_interfaces_responses_query_AiringSchedule.AiringScheduleSchema.html +3 -0
  395. package/docs/variables/apis_anilist_interfaces_responses_query_Character.CharacterSchema.html +3 -0
  396. package/docs/variables/apis_anilist_interfaces_responses_query_Media.MediaSchema.html +3 -0
  397. package/docs/variables/apis_anilist_interfaces_responses_query_Media.MediaWithRelationsSchema.html +3 -0
  398. package/docs/variables/apis_anilist_interfaces_responses_query_MediaList.MediaListSchema.html +3 -0
  399. package/docs/variables/apis_anilist_interfaces_responses_query_MediaListCollectionResponse.MediaListCollectionQuerySchema.html +3 -0
  400. package/docs/variables/apis_anilist_interfaces_responses_query_MediaTrend.MediaTrendSchema.html +3 -0
  401. package/docs/variables/apis_anilist_interfaces_responses_query_Notification.NotificationSchema.html +3 -0
  402. package/docs/variables/apis_anilist_interfaces_responses_query_Recommendation.RecommendationSchema.html +3 -0
  403. package/docs/variables/apis_anilist_interfaces_responses_query_Review.ReviewSchema.html +3 -0
  404. package/docs/variables/apis_anilist_interfaces_responses_query_SiteStatistics.SiteStatisticsSchema.html +3 -0
  405. package/docs/variables/apis_anilist_interfaces_responses_query_Staff.StaffSchema.html +3 -0
  406. package/docs/variables/apis_anilist_interfaces_responses_query_Studio.StudioSchema.html +3 -0
  407. package/docs/variables/apis_anilist_interfaces_responses_query_Thread.ThreadSchema.html +3 -0
  408. package/docs/variables/apis_anilist_interfaces_responses_query_ThreadComment.ThreadCommentSchema.html +3 -0
  409. package/docs/variables/apis_anilist_interfaces_responses_query_User.UserSchema.html +3 -0
  410. package/package.json +4 -1
  411. package/typedoc.json +15 -0
package/README.md CHANGED
@@ -1 +1,322 @@
1
1
  # AniLink
2
+
3
+ For full documentation on methods and parameters, please refer to the [AniLink documentation](https://rlalpha49.github.io/AniLink/).
4
+
5
+ AniLink is a TypeScript library for interacting with the AniList API. It provides methods for querying and mutating data, making it easier to integrate AniList's features into your own applications.
6
+
7
+
8
+
9
+ ## Installation
10
+
11
+ To install AniLink, you can use npm:
12
+
13
+ ```bash
14
+ npm install anilink-api-wrapper
15
+ ```
16
+
17
+ ## Initialization
18
+
19
+ ### AniList
20
+
21
+ To start using AniLink, you need to import it and initialize it with an optional authentication token. You can get an authentication token by registering your application on the AniList website.
22
+
23
+ #### Typescript
24
+
25
+ ```typescript
26
+ import AniLink from 'anilink-api-wrapper';
27
+ ```
28
+
29
+ #### Javascript
30
+
31
+ ```javascript
32
+ const AniLink = require('anilink-api-wrapper');
33
+ ```
34
+
35
+ #### Initialization
36
+
37
+ ```typescript
38
+ const authToken = 'your-auth-token';
39
+ const aniLink = new AniLink(authToken);
40
+ ```
41
+
42
+ You can also initialize AniLink without an authentication token
43
+
44
+ ```typescript
45
+ const aniLink = new AniLink();
46
+ ```
47
+
48
+ ## Structure
49
+
50
+ AniLink for AniList is divided into two main sections: `anilist.query` and `anilist.mutation`. The `anilist.query` section contains methods for querying data from the AniList API, while the `anilist.mutation` section contains methods for mutating data.
51
+
52
+ ### Query Methods
53
+
54
+ The `anilist.query` section is further divided into main query methods and page query methods. The main query methods return a single piece of data, while the page query methods return pages of data.
55
+
56
+ List of main query methods in `anilist.query`:
57
+
58
+ - user
59
+ - media
60
+ - mediaTrend
61
+ - airingSchedule
62
+ - character
63
+ - staff
64
+ - mediaList
65
+ - mediaListCollection
66
+ - genreCollection
67
+ - mediaTagCollection
68
+ - viewer
69
+ - notification
70
+ - studio
71
+ - review
72
+ - activity
73
+ - activityReply
74
+ - following
75
+ - follower
76
+ - thread
77
+ - threadComment
78
+ - recommendation
79
+ - markdown
80
+ - aniChartUser
81
+ - siteStatistics
82
+ - externalLinkSourceCollection
83
+
84
+ List of page query methods in `anilist.query.page`:
85
+
86
+ - users
87
+ - medias
88
+ - characters
89
+ - staffs
90
+ - studios
91
+ - mediaLists
92
+ - airingSchedules
93
+ - mediaTrends
94
+ - notifications
95
+ - followers
96
+ - following
97
+ - activities
98
+ - activityReplies
99
+ - threads
100
+ - threadComments
101
+ - reviews
102
+ - recommendations
103
+ - likes
104
+
105
+ ### Mutation Methods
106
+
107
+ List of methods in `anilist.mutation`:
108
+
109
+ - updateUser
110
+ - saveMediaListEntry
111
+ - updateMediaListEntries
112
+
113
+
114
+ ## Examples
115
+
116
+ Here are examples of how to use AniLink to interact with the AniList API:
117
+
118
+ ### Querying user data
119
+
120
+ ```typescript
121
+ // Querying user data
122
+ aniLink.anilist.query.user({id: 542244, isHTML: true});
123
+
124
+ // Querying media data
125
+ aniLink.anilist.query.media({id: 1, type: 'ANIME'});
126
+
127
+ // Querying media trend data
128
+ aniLink.anilist.query.mediaTrend({mediaId: 1, type: 'ANIME'});
129
+
130
+ // Querying airing schedule data
131
+ aniLink.anilist.query.airingSchedule({mediaId: 130590});
132
+
133
+ // Querying character data
134
+ aniLink.anilist.query.character({
135
+ id: 1,
136
+ asHtml: true,
137
+ mediaSort: ['POPULARITY_DESC'],
138
+ mediaType: 'ANIME',
139
+ mediaOnList: true,
140
+ mediaPage: 1,
141
+ mediaPerPage: 10
142
+ });
143
+
144
+ // Querying staff data
145
+ aniLink.anilist.query.staff({
146
+ id: 132186,
147
+ asHtml: true,
148
+ staffMediaSort: ['POPULARITY_DESC'],
149
+ staffMediaType: 'ANIME',
150
+ staffMediaOnList: true,
151
+ staffMediaPage: 1,
152
+ staffMediaPerPage: 10,
153
+ charactersSort: ['ID'],
154
+ charactersPage: 1,
155
+ charactersPerPage: 10,
156
+ characterMediaSort: ['POPULARITY_DESC'],
157
+ characterMediaOnList: true,
158
+ characterMediaPage: 1,
159
+ characterMediaPerPage: 10
160
+ });
161
+
162
+ // Querying media list data
163
+ aniLink.anilist.query.mediaList({userId: 542244});
164
+
165
+ // Querying media list collection data
166
+ aniLink.anilist.query.mediaListCollection({
167
+ userId: 542244,
168
+ type: 'ANIME',
169
+ status: 'COMPLETED',
170
+ chunk: 1,
171
+ perChunk: 10000
172
+ });
173
+
174
+ // Querying genre collection data
175
+ aniLink.anilist.query.genreCollection();
176
+
177
+ // Querying media tag collection data
178
+ aniLink.anilist.query.mediaTagCollection();
179
+
180
+ // Querying viewer data
181
+ aniLink.anilist.query.viewer({isHTML: true});
182
+
183
+ // Querying notification data
184
+ aniLink.anilist.query.notification({asHtml: true});
185
+
186
+ // Querying studio data
187
+ aniLink.anilist.query.studio({id: 561, asHtml: true});
188
+
189
+ // Querying review data
190
+ aniLink.anilist.query.review({id: 8008, asHtml: true});
191
+
192
+ // Querying activity data
193
+ aniLink.anilist.query.activity({id: 723235883, asHtml: true});
194
+
195
+ // Querying activity reply data
196
+ aniLink.anilist.query.activityReply({id: 12191046, asHtml: true});
197
+
198
+ // Querying following data
199
+ aniLink.anilist.query.following({userId: 542244, asHtml: true});
200
+
201
+ // Querying follower data
202
+ aniLink.anilist.query.follower({userId: 542244, asHtml: true});
203
+
204
+ // Querying thread data
205
+ aniLink.anilist.query.thread({id: 71881, asHtml: true});
206
+
207
+ // Querying thread comment data
208
+ aniLink.anilist.query.threadComment({id: 2555166, asHtml: true});
209
+
210
+ // Querying recommendation data
211
+ aniLink.anilist.query.recommendation({mediaId: 156822, asHtml: true});
212
+
213
+ // Querying markdown data
214
+ aniLink.anilist.query.markdown({markdown: 'Hello'});
215
+
216
+ // Querying AniChartUser data
217
+ aniLink.anilist.query.aniChartUser();
218
+
219
+ // Querying site statistics data
220
+ aniLink.anilist.query.siteStatistics();
221
+
222
+ // Querying external link source collection data
223
+ aniLink.anilist.query.externalLinkSourceCollection();
224
+
225
+ // Querying users page data
226
+ aniLink.anilist.query.page.users({id: 542244, isHTML: true});
227
+
228
+ // Querying media page data
229
+ aniLink.anilist.query.page.medias({id: 1, type: 'ANIME'});
230
+
231
+ // Querying character page data
232
+ aniLink.anilist.query.page.characters({id: 1, asHtml: true});
233
+
234
+ // Querying staff page data
235
+ aniLink.anilist.query.page.staffs({id: 132186, asHtml: true});
236
+
237
+ // Querying studio page data
238
+ aniLink.anilist.query.page.studios({id: 561, asHtml: true});
239
+
240
+ // Querying media list page data
241
+ aniLink.anilist.query.page.mediaLists({userId: 542244});
242
+
243
+ // Querying airing schedule page data
244
+ aniLink.anilist.query.page.airingSchedules({mediaId: 130590});
245
+
246
+ // Querying media trend page data
247
+ aniLink.anilist.query.page.mediaTrends({mediaId: 1, type: 'ANIME'});
248
+
249
+ // Querying notification page data
250
+ aniLink.anilist.query.page.notifications({asHtml: true});
251
+
252
+ // Querying follower page data
253
+ aniLink.anilist.query.page.followers({userId: 542244, asHtml: true});
254
+
255
+ // Querying following page data
256
+ aniLink.anilist.query.page.following({userId: 542244, asHtml: true});
257
+
258
+ // Querying activity page data
259
+ aniLink.anilist.query.page.activities({id: 723235883, asHtml: true});
260
+
261
+ // Querying activity reply page data
262
+ aniLink.anilist.query.page.activityReplies({id: 12191046, asHtml: true
263
+ });
264
+
265
+ // Querying thread page data
266
+ aniLink.anilist.query.page.threads({id: 71881, asHtml: true});
267
+
268
+ // Querying thread comment page data
269
+ aniLink.anilist.query.page.threadComments({threadId: 71881, asHtml: true
270
+ });
271
+
272
+ // Querying review page data
273
+ aniLink.anilist.query.page.reviews({id: 8008, asHtml: true});
274
+
275
+ // Querying recommendation page data
276
+ aniLink.anilist.query.page.recommendations({mediaId: 156822, asHtml: true
277
+ });
278
+
279
+ // Querying likes page data
280
+ aniLink.anilist.query.page.likes({likeableId: 723422275, type: 'ACTIVITY', asHtml: true
281
+ });
282
+ ```
283
+
284
+ ### Mutating user data
285
+
286
+ ```typescript
287
+ // Updating a user
288
+ aniLink.anilist.mutation.updateUser({
289
+ about: 'New about text',
290
+ titleLanguage: 'ENGLISH',
291
+ displayAdultContent: true,
292
+ airingNotifications: true,
293
+ scoreFormat: 'POINT_10',
294
+ rowOrder: 'title',
295
+ profileColor: 'blue',
296
+ donatorBadge: 'Supporter',
297
+ notificationOptions: [{type: 'AIRING', enabled: true}],
298
+ timezone: '-06:00',
299
+ activityMergeTime: 30,
300
+ animeListOptions: {sectionOrder: ['title'], customLists: [], advancedScoring: [], advancedScoringEnabled: false},
301
+ mangaListOptions: {sectionOrder: ['title'], customLists: [], advancedScoring: [], advancedScoringEnabled: false},
302
+ staffNameLanguage: 'ROMAJI',
303
+ restrictMessagesToFollowing: false,
304
+ disabledListActivity: [{type: 'CURRENT', disabled: false}]
305
+ });
306
+
307
+ // Saving media list entries
308
+ aniLink.anilist.mutation.saveMediaListEntry({
309
+ mediaId: 1,
310
+ status: 'CURRENT',
311
+ score: 8.5,
312
+ progress: 3,
313
+ });
314
+
315
+ // Updating media list entries
316
+ aniLink.anilist.mutation.updateMediaListEntries({
317
+ status: 'CURRENT',
318
+ score: 8.5,
319
+ progress: 3,
320
+ ids: [143271, 156822, 170890],
321
+ });
322
+ ```
package/dist/AniLink.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AniLink = void 0;
3
4
  const Activity_1 = require("./apis/anilist/query/Activity");
4
5
  const ActivityReply_1 = require("./apis/anilist/query/ActivityReply");
5
6
  const ActivityReplies_1 = require("./apis/anilist/query/page/ActivityReplies");
@@ -46,7 +47,15 @@ const UpdateUser_1 = require("./apis/anilist/mutation/UpdateUser");
46
47
  const User_1 = require("./apis/anilist/query/User");
47
48
  const Users_1 = require("./apis/anilist/query/page/Users");
48
49
  const Viewer_1 = require("./apis/anilist/query/Viewer");
50
+ /**
51
+ * `AniLink` is a class for interacting with the APIs.
52
+ * It provides methods for querying and mutating data.
53
+ */
49
54
  class AniLink {
55
+ /**
56
+ * Creates a new AniLink instance.
57
+ * @param {string} authToken - The authentication token to use for API requests.
58
+ */
50
59
  constructor(authToken) {
51
60
  const userQueryInstance = new User_1.UserQuery(authToken);
52
61
  const mediaQueryInstance = new Media_1.MediaQuery(authToken);
@@ -150,4 +159,5 @@ class AniLink {
150
159
  };
151
160
  }
152
161
  }
162
+ exports.AniLink = AniLink;
153
163
  module.exports = AniLink;
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityWithRepliesSchema = exports.ActivitySchema = void 0;
4
4
  const BasicUser_1 = require("./BasicUser");
5
5
  const ActivityReply_1 = require("./ActivityReply");
6
+ /**
7
+ * `ActivitySchema` is a constant representing the GraphQL schema for an activity query.
8
+ * It includes the TextActivity, ListActivity, and MessageActivity each having their own properties.
9
+ */
6
10
  exports.ActivitySchema = `
7
11
  activity {
8
12
  ... on TextActivity {
@@ -58,6 +62,10 @@ exports.ActivitySchema = `
58
62
  }
59
63
  }
60
64
  `;
65
+ /**
66
+ * `ActivityWithRepliesSchema` is a constant representing the GraphQL schema for an activity query with replies.
67
+ * It includes the TextActivity, ListActivity, and MessageActivity each having their own properties and replies.
68
+ */
61
69
  exports.ActivityWithRepliesSchema = `
62
70
  ... on TextActivity {
63
71
  id
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityNotificationSchema = void 0;
4
4
  const Activity_1 = require("./Activity");
5
5
  const BasicUser_1 = require("./BasicUser");
6
+ /**
7
+ * `ActivityNotificationSchema` is a constant representing the GraphQL schema for an activity notification query.
8
+ * 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.
9
+ */
6
10
  exports.ActivityNotificationSchema = `
7
11
  id
8
12
  userId
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityReplySchema = void 0;
4
4
  const BasicUser_1 = require("./BasicUser");
5
+ /**
6
+ * `ActivityReplySchema` is a constant representing the GraphQL schema for an activity reply query.
7
+ * 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.
8
+ */
5
9
  exports.ActivityReplySchema = `
6
10
  id
7
11
  userId
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BasicCommentSchema = void 0;
4
+ /**
5
+ * `BasicCommentSchema` is a string representing the GraphQL schema for a basic comment.
6
+ * It includes the id, user id, and thread id.
7
+ */
4
8
  exports.BasicCommentSchema = `
5
9
  id
6
10
  userId
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BasicThreadSchema = void 0;
4
+ /**
5
+ * `BasicThreadSchema` is a string representing the GraphQL schema for a basic thread.
6
+ * It includes the id, title, body, and site url.
7
+ */
4
8
  exports.BasicThreadSchema = `
5
9
  id
6
10
  title
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
+ */
4
8
  exports.BasicUserSchema = `
5
9
  id
6
10
  name
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.CoverImageSchema = `
5
9
  coverImage {
6
10
  extraLarge
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.ExternalLinkSchema = `
5
9
  externalLinks {
6
10
  id
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.FuzzyDateSchema = `
5
9
  year
6
10
  month
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.ImageSchema = `
5
9
  image {
6
10
  large
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.MediaListEntrySchema = `
5
9
  mediaListEntry {
6
10
  id
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.NameSchema = `
5
9
  name {
6
10
  first
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.NextAiringEpisodeSchema = `
5
9
  nextAiringEpisode {
6
10
  airingAt
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ */
4
8
  exports.RankingSchema = `
5
9
  rankings {
6
10
  id
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScoreDistributionSchema = void 0;
4
+ /**
5
+ * `ScoreDistributionSchema` is a string representing the GraphQL schema for a score distribution.
6
+ * It includes the score and the amount.
7
+ */
4
8
  exports.ScoreDistributionSchema = `
5
9
  scoreDistribution {
6
10
  score
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
+ */
4
8
  exports.SiteTrendSchema = `
5
9
  date
6
10
  count
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SiteTrendConnectionSchema = void 0;
4
4
  const SiteTrend_1 = require("./SiteTrend");
5
+ /**
6
+ * `SiteTrendConnectionSchema` is a string representing the GraphQL schema for a site trend connection.
7
+ * It includes the page information and the edges and nodes of the site trends.
8
+ */
5
9
  exports.SiteTrendConnectionSchema = `
6
10
  pageInfo {
7
11
  total
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatusDistributionSchema = void 0;
4
+ /**
5
+ * `StatusDistributionSchema` is a string representing the GraphQL schema for a status distribution.
6
+ * It includes the status and amount.
7
+ */
4
8
  exports.StatusDistributionSchema = `
5
9
  statusDistribution {
6
10
  status
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StreamingEpisodeSchema = void 0;
4
+ /**
5
+ * `StreamingEpisodeSchema` is a string representing the GraphQL schema for a streaming episode.
6
+ * It includes the title, thumbnail, url, and site.
7
+ */
4
8
  exports.StreamingEpisodeSchema = `
5
9
  streamingEpisodes {
6
10
  title
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TagSchema = void 0;
4
+ /**
5
+ * `TagSchema` is a string representing the GraphQL schema for a tag.
6
+ * It includes the id, name, description, category, rank, isGeneralSpoiler, isMediaSpoiler, isAdult, and userId.
7
+ */
4
8
  exports.TagSchema = `
5
9
  id
6
10
  name
@@ -4,6 +4,10 @@ exports.ThreadNotificationSchema = void 0;
4
4
  const BasicThread_1 = require("./BasicThread");
5
5
  const BasicComment_1 = require("./BasicComment");
6
6
  const BasicUser_1 = require("./BasicUser");
7
+ /**
8
+ * `ThreadNotificationSchema` is a string representing the GraphQL schema for a thread notification.
9
+ * It includes the id, userId, type, commentId, context, createdAt, thread, comment, and user.
10
+ */
7
11
  exports.ThreadNotificationSchema = `
8
12
  id
9
13
  userId
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TitleSchema = void 0;
4
+ /**
5
+ * `TitleSchema` is a string representing the GraphQL schema for a title.
6
+ * It includes the romaji, english, native, and userPreferred.
7
+ */
4
8
  exports.TitleSchema = `
5
9
  title {
6
10
  romaji
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TrailerSchema = void 0;
4
+ /**
5
+ * `TrailerSchema` is a string representing the GraphQL schema for a trailer.
6
+ * It includes the id, site, and thumbnail.
7
+ */
4
8
  exports.TrailerSchema = `
5
9
  trailer {
6
10
  id
@@ -1,12 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserMangaStatsSchema = exports.UserAnimeStatsSchema = void 0;
4
+ /**
5
+ * `UserAnimeStatsSchema` is a string representing the GraphQL schema for a user's anime statistics.
6
+ * It includes the count, meanScore, minutesWatched, and mediaIds.
7
+ */
4
8
  exports.UserAnimeStatsSchema = `
5
9
  count
6
10
  meanScore
7
11
  minutesWatched
8
12
  mediaIds
9
13
  `;
14
+ /**
15
+ * `UserMangaStatsSchema` is a string representing the GraphQL schema for a user's manga statistics.
16
+ * It includes the count, meanScore, chaptersRead, and mediaIds.
17
+ */
10
18
  exports.UserMangaStatsSchema = `
11
19
  count
12
20
  meanScore
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AiringScheduleSchema = void 0;
4
4
  const Media_1 = require("./Media");
5
+ /**
6
+ * `AiringScheduleSchema` is a constant representing the GraphQL schema for an airing schedule query.
7
+ * It includes the id, airing time, time until airing, episode number, media id, and the media schema.
8
+ */
5
9
  exports.AiringScheduleSchema = `
6
10
  id
7
11
  airingAt
@@ -5,6 +5,10 @@ const FuzzyDate_1 = require("../../FuzzyDate");
5
5
  const Name_1 = require("../../Name");
6
6
  const Image_1 = require("../../Image");
7
7
  const Title_1 = require("../../Title");
8
+ /**
9
+ * `CharacterSchema` is a constant representing the GraphQL schema for a character query.
10
+ * It includes the character's id, name, image, description, gender, date of birth, age, blood type, favourite status, site URL, associated media, number of favourites, and moderator notes.
11
+ */
8
12
  exports.CharacterSchema = `
9
13
  id
10
14
  ${Name_1.NameSchema}