anilink-api-wrapper 1.29.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +71 -241
  3. package/dist/AniLink.d.ts +12329 -0
  4. package/dist/AniLink.mjs +7298 -0
  5. package/dist/anilist.d.ts +1 -0
  6. package/dist/anilist.mjs +5 -0
  7. package/dist/mal.d.ts +1 -0
  8. package/dist/mal.mjs +5 -0
  9. package/package.json +121 -46
  10. package/dist/AniLink.js +0 -248
  11. package/dist/apis/anilist/Custom.js +0 -42
  12. package/dist/apis/anilist/interfaces/Activity.js +0 -436
  13. package/dist/apis/anilist/interfaces/Basic.js +0 -33
  14. package/dist/apis/anilist/interfaces/CoverImage.js +0 -15
  15. package/dist/apis/anilist/interfaces/Distribution.js +0 -23
  16. package/dist/apis/anilist/interfaces/ExternalLink.js +0 -14
  17. package/dist/apis/anilist/interfaces/Favoured.js +0 -2
  18. package/dist/apis/anilist/interfaces/FuzzyDate.js +0 -12
  19. package/dist/apis/anilist/interfaces/Image.js +0 -13
  20. package/dist/apis/anilist/interfaces/ListScores.js +0 -2
  21. package/dist/apis/anilist/interfaces/Media.js +0 -13
  22. package/dist/apis/anilist/interfaces/Name.js +0 -15
  23. package/dist/apis/anilist/interfaces/NextAiringEpisode.js +0 -14
  24. package/dist/apis/anilist/interfaces/Notification.js +0 -25
  25. package/dist/apis/anilist/interfaces/Ranking.js +0 -19
  26. package/dist/apis/anilist/interfaces/SiteTrend.js +0 -33
  27. package/dist/apis/anilist/interfaces/Staff.js +0 -2
  28. package/dist/apis/anilist/interfaces/Stat.js +0 -2
  29. package/dist/apis/anilist/interfaces/Statistics.js +0 -2
  30. package/dist/apis/anilist/interfaces/StreamingEpisode.js +0 -15
  31. package/dist/apis/anilist/interfaces/Studio.js +0 -2
  32. package/dist/apis/anilist/interfaces/Tag.js +0 -18
  33. package/dist/apis/anilist/interfaces/Title.js +0 -15
  34. package/dist/apis/anilist/interfaces/Trailer.js +0 -14
  35. package/dist/apis/anilist/interfaces/UserStats.js +0 -23
  36. package/dist/apis/anilist/interfaces/responses/mutation/Favourites.js +0 -83
  37. package/dist/apis/anilist/interfaces/responses/query/AiringSchedule.js +0 -18
  38. package/dist/apis/anilist/interfaces/responses/query/AniChartUser.js +0 -2
  39. package/dist/apis/anilist/interfaces/responses/query/Character.js +0 -34
  40. package/dist/apis/anilist/interfaces/responses/query/ExternalLinkSourceCollection.js +0 -2
  41. package/dist/apis/anilist/interfaces/responses/query/Media.js +0 -217
  42. package/dist/apis/anilist/interfaces/responses/query/MediaList.js +0 -36
  43. package/dist/apis/anilist/interfaces/responses/query/MediaListCollectionResponse.js +0 -49
  44. package/dist/apis/anilist/interfaces/responses/query/MediaTagCollection.js +0 -2
  45. package/dist/apis/anilist/interfaces/responses/query/MediaTrend.js +0 -21
  46. package/dist/apis/anilist/interfaces/responses/query/Notification.js +0 -166
  47. package/dist/apis/anilist/interfaces/responses/query/Recommendation.js +0 -23
  48. package/dist/apis/anilist/interfaces/responses/query/Review.js +0 -30
  49. package/dist/apis/anilist/interfaces/responses/query/SiteStatistics.js +0 -31
  50. package/dist/apis/anilist/interfaces/responses/query/Staff.js +0 -59
  51. package/dist/apis/anilist/interfaces/responses/query/Studio.js +0 -60
  52. package/dist/apis/anilist/interfaces/responses/query/Thread.js +0 -44
  53. package/dist/apis/anilist/interfaces/responses/query/ThreadComment.js +0 -31
  54. package/dist/apis/anilist/interfaces/responses/query/User.js +0 -366
  55. package/dist/apis/anilist/mutation/DeleteActivity.js +0 -61
  56. package/dist/apis/anilist/mutation/DeleteActivityReply.js +0 -61
  57. package/dist/apis/anilist/mutation/DeleteCustomList.js +0 -63
  58. package/dist/apis/anilist/mutation/DeleteMediaListEntry.js +0 -61
  59. package/dist/apis/anilist/mutation/DeleteReview.js +0 -61
  60. package/dist/apis/anilist/mutation/DeleteThread.js +0 -61
  61. package/dist/apis/anilist/mutation/DeleteThreadComment.js +0 -61
  62. package/dist/apis/anilist/mutation/SaveActivityReply.js +0 -66
  63. package/dist/apis/anilist/mutation/SaveListActivity.js +0 -64
  64. package/dist/apis/anilist/mutation/SaveMediaListEntry.js +0 -97
  65. package/dist/apis/anilist/mutation/SaveMessageActivity.js +0 -68
  66. package/dist/apis/anilist/mutation/SaveRecommendation.js +0 -66
  67. package/dist/apis/anilist/mutation/SaveReview.js +0 -68
  68. package/dist/apis/anilist/mutation/SaveTextActivity.js +0 -65
  69. package/dist/apis/anilist/mutation/SaveThread.js +0 -69
  70. package/dist/apis/anilist/mutation/SaveThreadComment.js +0 -67
  71. package/dist/apis/anilist/mutation/ToggleActivityPin.js +0 -64
  72. package/dist/apis/anilist/mutation/ToggleActivitySubscription.js +0 -64
  73. package/dist/apis/anilist/mutation/ToggleFavourite.js +0 -66
  74. package/dist/apis/anilist/mutation/ToggleFollow.js +0 -62
  75. package/dist/apis/anilist/mutation/ToggleLike.js +0 -64
  76. package/dist/apis/anilist/mutation/ToggleLikeV2.js +0 -64
  77. package/dist/apis/anilist/mutation/ToggleThreadSubscription.js +0 -64
  78. package/dist/apis/anilist/mutation/UpdateAniChartHighlights.js +0 -58
  79. package/dist/apis/anilist/mutation/UpdateAniChartSettings.js +0 -58
  80. package/dist/apis/anilist/mutation/UpdateFavouriteOrder.js +0 -73
  81. package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +0 -93
  82. package/dist/apis/anilist/mutation/UpdateUser.js +0 -127
  83. package/dist/apis/anilist/query/Activity.js +0 -86
  84. package/dist/apis/anilist/query/ActivityReply.js +0 -60
  85. package/dist/apis/anilist/query/AiringSchedule.js +0 -78
  86. package/dist/apis/anilist/query/AniChartUser.js +0 -56
  87. package/dist/apis/anilist/query/Character.js +0 -70
  88. package/dist/apis/anilist/query/ExternalLinkSourceCollection.js +0 -68
  89. package/dist/apis/anilist/query/Follower.js +0 -64
  90. package/dist/apis/anilist/query/Following.js +0 -64
  91. package/dist/apis/anilist/query/GenreCollection.js +0 -46
  92. package/dist/apis/anilist/query/Markdown.js +0 -57
  93. package/dist/apis/anilist/query/Media.js +0 -134
  94. package/dist/apis/anilist/query/MediaList.js +0 -90
  95. package/dist/apis/anilist/query/MediaListCollection.js +0 -76
  96. package/dist/apis/anilist/query/MediaTagCollection.js +0 -57
  97. package/dist/apis/anilist/query/MediaTrend.js +0 -84
  98. package/dist/apis/anilist/query/Notification.js +0 -65
  99. package/dist/apis/anilist/query/Recommendation.js +0 -68
  100. package/dist/apis/anilist/query/Review.js +0 -64
  101. package/dist/apis/anilist/query/SiteStatistics.js +0 -78
  102. package/dist/apis/anilist/query/Staff.js +0 -79
  103. package/dist/apis/anilist/query/Studio.js +0 -82
  104. package/dist/apis/anilist/query/Thread.js +0 -68
  105. package/dist/apis/anilist/query/ThreadComment.js +0 -63
  106. package/dist/apis/anilist/query/User.js +0 -68
  107. package/dist/apis/anilist/query/Viewer.js +0 -65
  108. package/dist/apis/anilist/query/page/Activities.js +0 -97
  109. package/dist/apis/anilist/query/page/ActivityReplies.js +0 -71
  110. package/dist/apis/anilist/query/page/AiringSchedules.js +0 -89
  111. package/dist/apis/anilist/query/page/Characters.js +0 -81
  112. package/dist/apis/anilist/query/page/Followers.js +0 -75
  113. package/dist/apis/anilist/query/page/Followings.js +0 -75
  114. package/dist/apis/anilist/query/page/Likes.js +0 -71
  115. package/dist/apis/anilist/query/page/MediaLists.js +0 -101
  116. package/dist/apis/anilist/query/page/MediaTrends.js +0 -95
  117. package/dist/apis/anilist/query/page/Medias.js +0 -143
  118. package/dist/apis/anilist/query/page/Notifications.js +0 -73
  119. package/dist/apis/anilist/query/page/Recommendations.js +0 -79
  120. package/dist/apis/anilist/query/page/Reviews.js +0 -75
  121. package/dist/apis/anilist/query/page/Staffs.js +0 -90
  122. package/dist/apis/anilist/query/page/Studios.js +0 -93
  123. package/dist/apis/anilist/query/page/ThreadCommments.js +0 -74
  124. package/dist/apis/anilist/query/page/Threads.js +0 -79
  125. package/dist/apis/anilist/query/page/Users.js +0 -79
  126. package/dist/apis/anilist/types/ActivityType.js +0 -14
  127. package/dist/apis/anilist/types/DisabledListActivity.js +0 -11
  128. package/dist/apis/anilist/types/Format.js +0 -30
  129. package/dist/apis/anilist/types/FuzzyDate.js +0 -12
  130. package/dist/apis/anilist/types/MediaListOptions.js +0 -16
  131. package/dist/apis/anilist/types/NotificationOptions.js +0 -29
  132. package/dist/apis/anilist/types/RecommendationRating.js +0 -12
  133. package/dist/apis/anilist/types/Season.js +0 -13
  134. package/dist/apis/anilist/types/Sort.js +0 -265
  135. package/dist/apis/anilist/types/Source.js +0 -25
  136. package/dist/apis/anilist/types/Status.js +0 -26
  137. package/dist/apis/anilist/types/Type.js +0 -44
  138. package/dist/apis/anilist/types/UserStaffNameLanguage.js +0 -15
  139. package/dist/apis/anilist/types/UserTitleLanguage.js +0 -15
  140. package/dist/base/APIWrapper.js +0 -17
  141. package/dist/base/RequestHandler.js +0 -48
  142. package/dist/base/ValidateVariables.js +0 -125
@@ -1,166 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationSchema = void 0;
4
- const Title_1 = require("../../Title");
5
- const Basic_1 = require("../../Basic");
6
- const Activity_1 = require("../../Activity");
7
- const Notification_1 = require("../../Notification");
8
- /**
9
- * `NotificationSchema` is a constant representing the GraphQL schema for a notification query.
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.
11
- */
12
- exports.NotificationSchema = `
13
- ... on AiringNotification {
14
- id
15
- type
16
- animeId
17
- episode
18
- contexts
19
- createdAt
20
- media {
21
- id
22
- ${Title_1.TitleSchema}
23
- }
24
- }
25
- ... on FollowingNotification {
26
- id
27
- type
28
- userId
29
- context
30
- createdAt
31
- user {
32
- ${Basic_1.BasicUserSchema}
33
- }
34
- }
35
- ... on ActivityMessageNotification {
36
- id
37
- userId
38
- type
39
- activityId
40
- context
41
- createdAt
42
- message {
43
- id
44
- recipientId
45
- messengerId
46
- type
47
- replyCount
48
- message (asHtml: $asHtml)
49
- isLocked
50
- isSubscribed
51
- likeCount
52
- isLiked
53
- isPrivate
54
- siteUrl
55
- createdAt
56
- replies {
57
- id
58
- userId
59
- activityId
60
- text (asHtml: $asHtml)
61
- createdAt
62
- likeCount
63
- isLiked
64
- user {
65
- ${Basic_1.BasicUserSchema}
66
- }
67
- likes {
68
- ${Basic_1.BasicUserSchema}
69
- }
70
- }
71
- likes {
72
- ${Basic_1.BasicUserSchema}
73
- }
74
- }
75
- user {
76
- ${Basic_1.BasicUserSchema}
77
- }
78
- }
79
- ... on ActivityMentionNotification {
80
- ${Activity_1.ActivityNotificationSchema}
81
- }
82
- ... on ActivityReplyNotification {
83
- ${Activity_1.ActivityNotificationSchema}
84
- }
85
- ... on ActivityReplySubscribedNotification {
86
- ${Activity_1.ActivityNotificationSchema}
87
- }
88
- ... on ActivityLikeNotification {
89
- ${Activity_1.ActivityNotificationSchema}
90
- }
91
- ... on ActivityReplyLikeNotification {
92
- ${Activity_1.ActivityNotificationSchema}
93
- }
94
- ... on ThreadCommentMentionNotification {
95
- ${Notification_1.ThreadNotificationSchema}
96
- }
97
- ... on ThreadCommentReplyNotification {
98
- ${Notification_1.ThreadNotificationSchema}
99
- }
100
- ... on ThreadCommentSubscribedNotification {
101
- ${Notification_1.ThreadNotificationSchema}
102
- }
103
- ... on ThreadCommentLikeNotification {
104
- ${Notification_1.ThreadNotificationSchema}
105
- }
106
- ... on ThreadLikeNotification {
107
- id
108
- userId
109
- type
110
- context
111
- createdAt
112
- thread {
113
- ${Basic_1.BasicThreadSchema}
114
- }
115
- comment {
116
- ${Basic_1.BasicCommentSchema}
117
- }
118
- user {
119
- ${Basic_1.BasicUserSchema}
120
- }
121
- }
122
- ... on RelatedMediaAdditionNotification {
123
- id
124
- type
125
- mediaId
126
- context
127
- createdAt
128
- media {
129
- id
130
- ${Title_1.TitleSchema}
131
- }
132
- }
133
- ... on MediaDataChangeNotification {
134
- id
135
- type
136
- mediaId
137
- context
138
- reason
139
- createdAt
140
- media {
141
- id
142
- ${Title_1.TitleSchema}
143
- }
144
- }
145
- ... on MediaMergeNotification {
146
- id
147
- type
148
- mediaId
149
- deletedMediaTitles
150
- context
151
- reason
152
- createdAt
153
- media {
154
- id
155
- ${Title_1.TitleSchema}
156
- }
157
- }
158
- ... on MediaDeletionNotification {
159
- id
160
- type
161
- deletedMediaTitle
162
- context
163
- reason
164
- createdAt
165
- }
166
- `;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecommendationSchema = void 0;
4
- const Media_1 = require("./Media");
5
- const Basic_1 = require("../../Basic");
6
- /**
7
- * `RecommendationSchema` is a constant representing the GraphQL schema for a recommendation query.
8
- * It includes the id, rating, user rating, media of type `MediaResponse`, media recommendation of type `MediaResponse`, and user of type `BasicUser`.
9
- */
10
- exports.RecommendationSchema = `
11
- id
12
- rating
13
- userRating
14
- media {
15
- ${Media_1.MediaSchema}
16
- }
17
- mediaRecommendation {
18
- ${Media_1.MediaSchema}
19
- }
20
- user {
21
- ${Basic_1.BasicUserSchema}
22
- }
23
- `;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReviewSchema = void 0;
4
- const Media_1 = require("./Media");
5
- const Basic_1 = require("../../Basic");
6
- /**
7
- * `ReviewSchema` is a constant representing the GraphQL schema for a review query.
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`.
9
- */
10
- exports.ReviewSchema = `
11
- id
12
- mediaId
13
- userId
14
- mediaType
15
- summary
16
- body (asHtml: $asHtml)
17
- rating
18
- ratingAmount
19
- score
20
- private
21
- siteUrl
22
- createdAt
23
- updatedAt
24
- user {
25
- ${Basic_1.BasicUserSchema}
26
- }
27
- media {
28
- ${Media_1.MediaSchema}
29
- }
30
- `;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SiteStatisticsSchema = void 0;
4
- const SiteTrend_1 = require("../../SiteTrend");
5
- /**
6
- * `SiteStatisticsSchema` is a constant representing the GraphQL schema for a site statistics query.
7
- * It includes users, anime, manga, characters, staff, studios, and reviews of type `SiteTrendConnection`.
8
- */
9
- exports.SiteStatisticsSchema = `
10
- users (sort: $usersSort, page: $usersPage, perPage: $usersPerPage) {
11
- ${SiteTrend_1.SiteTrendConnectionSchema}
12
- }
13
- anime (sort: $animeSort, page: $animePage, perPage: $animePerPage) {
14
- ${SiteTrend_1.SiteTrendConnectionSchema}
15
- }
16
- manga (sort: $mangaSort, page: $mangaPage, perPage: $mangaPerPage) {
17
- ${SiteTrend_1.SiteTrendConnectionSchema}
18
- }
19
- characters (sort: $charactersSort, page: $charactersPage, perPage: $charactersPerPage) {
20
- ${SiteTrend_1.SiteTrendConnectionSchema}
21
- }
22
- staff (sort: $staffSort, page: $staffPage, perPage: $staffPerPage) {
23
- ${SiteTrend_1.SiteTrendConnectionSchema}
24
- }
25
- studios (sort: $studiosSort, page: $studiosPage, perPage: $studiosPerPage) {
26
- ${SiteTrend_1.SiteTrendConnectionSchema}
27
- }
28
- reviews (sort: $reviewsSort, page: $reviewsPage, perPage: $reviewsPerPage) {
29
- ${SiteTrend_1.SiteTrendConnectionSchema}
30
- }
31
- `;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StaffSchema = void 0;
4
- const Name_1 = require("../../Name");
5
- const Image_1 = require("../../Image");
6
- const FuzzyDate_1 = require("../../FuzzyDate");
7
- const Title_1 = require("../../Title");
8
- /**
9
- * `StaffSchema` is a constant representing the GraphQL schema for a staff query.
10
- * It includes the staff's id, name, language, image, description, primary occupations, gender, date of birth, date of death, age, years active, hometown, blood type, favourite status, favourite blocked status, site url, staff media, characters, character media, staff, submitter, submission status, submission notes, favourites, and mod notes.
11
- */
12
- exports.StaffSchema = `
13
- id
14
- ${Name_1.NameSchema}
15
- languageV2
16
- ${Image_1.ImageSchema}
17
- description(asHtml: $asHtml)
18
- primaryOccupations
19
- gender
20
- dateOfBirth {
21
- ${FuzzyDate_1.FuzzyDateSchema}
22
- }
23
- dateOfDeath {
24
- ${FuzzyDate_1.FuzzyDateSchema}
25
- }
26
- age
27
- yearsActive
28
- homeTown
29
- bloodType
30
- isFavourite
31
- isFavouriteBlocked
32
- siteUrl
33
- staffMedia (sort: $staffMediaSort, type: $staffMediaType, onList: $staffMediaOnList, page: $staffMediaPage, perPage: $staffMediaPerPage) {
34
- nodes {
35
- id
36
- ${Title_1.TitleSchema}
37
- }
38
- }
39
- characters (sort: $charactersSort, page: $charactersPage, perPage: $charactersPerPage) {
40
- nodes {
41
- id
42
- ${Name_1.NameSchema}
43
- }
44
- }
45
- characterMedia (sort: $characterMediaSort, onList: $characterMediaOnList, page: $characterMediaPage, perPage: $characterMediaPerPage) {
46
- nodes {
47
- id
48
- ${Title_1.TitleSchema}
49
- }
50
- }
51
- submitter {
52
- id
53
- name
54
- }
55
- submissionStatus
56
- submissionNotes
57
- favourites
58
- modNotes
59
- `;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StudioSchema = void 0;
4
- const Character_1 = require("./Character");
5
- const Staff_1 = require("./Staff");
6
- const Media_1 = require("./Media");
7
- const Name_1 = require("../../Name");
8
- const Image_1 = require("../../Image");
9
- /**
10
- * `StudioSchema` is a constant representing the GraphQL schema for a studio query.
11
- * It includes the studio's id, name, animation studio status, media, site url, favourite status, and favourites count.
12
- */
13
- exports.StudioSchema = `
14
- id
15
- name
16
- isAnimationStudio
17
- media (sort: $mediaSort, isMain: $mediaIsMain onList: $mediaOnList, page: $mediaPage, perPage: $mediaPerPage) {
18
- edges {
19
- id
20
- relationType
21
- isMainStudio
22
- characters {
23
- ${Character_1.CharacterSchema}
24
- }
25
- characterRole
26
- characterName
27
- roleNotes
28
- dubGroup
29
- voiceActors {
30
- ${Staff_1.StaffSchema}
31
- }
32
- voiceActorRoles {
33
- voiceActor {
34
- id
35
- ${Name_1.NameSchema}
36
- ${Image_1.ImageSchema}
37
- }
38
- roleNotes
39
- dubGroup
40
- }
41
- favouriteOrder
42
- node {
43
- ${Media_1.MediaSchema}
44
- }
45
- }
46
- nodes {
47
- ${Media_1.MediaSchema}
48
- }
49
- pageInfo {
50
- total
51
- perPage
52
- currentPage
53
- lastPage
54
- hasNextPage
55
- }
56
- }
57
- siteUrl
58
- isFavourite
59
- favourites
60
- `;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThreadSchema = void 0;
4
- const Media_1 = require("./Media");
5
- const Basic_1 = require("../../Basic");
6
- /**
7
- * `ThreadSchema` is a constant representing the GraphQL schema for a thread query.
8
- * It includes the thread's id, title, body, userId, replyUserId, replyCommentId, replyCount, viewCount, isLocked status, isSticky status, isSubscribed status, likeCount, isLiked status, repliedAt, createdAt, updatedAt, user of type `BasicUser`, replyUser of type `BasicUser`, likes of type `BasicUser[]`, siteUrl, categories, and mediaCategories of type `MediaResponse[]`.
9
- */
10
- exports.ThreadSchema = `
11
- id
12
- title
13
- body (asHtml: $asHtml)
14
- userId
15
- replyUserId
16
- replyCommentId
17
- replyCount
18
- viewCount
19
- isLocked
20
- isSticky
21
- isSubscribed
22
- likeCount
23
- isLiked
24
- repliedAt
25
- createdAt
26
- updatedAt
27
- user {
28
- ${Basic_1.BasicUserSchema}
29
- }
30
- replyUser {
31
- ${Basic_1.BasicUserSchema}
32
- }
33
- likes {
34
- ${Basic_1.BasicUserSchema}
35
- }
36
- siteUrl
37
- categories {
38
- id
39
- name
40
- }
41
- mediaCategories {
42
- ${Media_1.MediaSchema}
43
- }
44
- `;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThreadCommentSchema = void 0;
4
- const Thread_1 = require("./Thread");
5
- const Basic_1 = require("../../Basic");
6
- /**
7
- * `ThreadCommentSchema` is a constant representing the GraphQL schema for a thread comment query.
8
- * It includes the comment's id, userId, threadId, comment, likeCount, isLiked status, siteUrl, createdAt, updatedAt, thread of type `ThreadResponse`, user of type `BasicUser`, likes of type `BasicUser[]`, childComments, and isLocked status.
9
- */
10
- exports.ThreadCommentSchema = `
11
- id
12
- userId
13
- threadId
14
- comment (asHtml: $asHtml)
15
- likeCount
16
- isLiked
17
- siteUrl
18
- createdAt
19
- updatedAt
20
- thread {
21
- ${Thread_1.ThreadSchema}
22
- }
23
- user {
24
- ${Basic_1.BasicUserSchema}
25
- }
26
- likes {
27
- ${Basic_1.BasicUserSchema}
28
- }
29
- childComments
30
- isLocked
31
- `;