anilink-api-wrapper 1.0.0 → 1.2.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 (92) hide show
  1. package/dist/AniLink.js +10 -1
  2. package/dist/apis/anilist/interfaces/CoverImage.js +9 -0
  3. package/dist/apis/anilist/interfaces/ExternalLink.js +8 -0
  4. package/dist/apis/anilist/interfaces/FuzzyDate.js +6 -0
  5. package/dist/apis/anilist/interfaces/Image.js +7 -0
  6. package/dist/apis/anilist/interfaces/MediaListEntry.js +7 -0
  7. package/dist/apis/anilist/interfaces/Name.js +9 -0
  8. package/dist/apis/anilist/interfaces/NextAiringEpisode.js +8 -0
  9. package/dist/apis/anilist/interfaces/Ranking.js +13 -0
  10. package/dist/apis/anilist/interfaces/ScoreDistribution.js +7 -0
  11. package/dist/apis/anilist/interfaces/StatusDistribution.js +7 -0
  12. package/dist/apis/anilist/interfaces/StreamingEpisode.js +9 -0
  13. package/dist/apis/anilist/interfaces/Tag.js +12 -0
  14. package/dist/apis/anilist/interfaces/Title.js +9 -0
  15. package/dist/apis/anilist/interfaces/Trailer.js +8 -0
  16. package/dist/apis/anilist/interfaces/UserStats.js +13 -0
  17. package/dist/apis/anilist/interfaces/responses/AiringSchedule.js +12 -0
  18. package/dist/apis/anilist/interfaces/responses/Character.js +28 -0
  19. package/dist/apis/anilist/interfaces/responses/Media.js +208 -0
  20. package/dist/apis/anilist/interfaces/responses/MediaList.js +30 -0
  21. package/dist/apis/anilist/interfaces/responses/MediaListCollectionResponse.js +39 -0
  22. package/dist/apis/anilist/interfaces/responses/MediaTag.js +2 -0
  23. package/dist/apis/anilist/interfaces/responses/MediaTagCollection.js +2 -0
  24. package/dist/apis/anilist/interfaces/responses/MediaTrend.js +15 -0
  25. package/dist/apis/anilist/interfaces/responses/Staff.js +53 -0
  26. package/dist/apis/anilist/interfaces/responses/User.js +360 -0
  27. package/dist/apis/anilist/query/AiringSchedule.js +3 -115
  28. package/dist/apis/anilist/query/Character.js +2 -36
  29. package/dist/apis/anilist/query/GenreCollection.js +32 -0
  30. package/dist/apis/anilist/query/Media.js +3 -200
  31. package/dist/apis/anilist/query/MediaList.js +2 -137
  32. package/dist/apis/anilist/query/MediaListCollection.js +2 -623
  33. package/dist/apis/anilist/query/MediaTagCollection.js +35 -0
  34. package/dist/apis/anilist/query/MediaTrend.js +3 -117
  35. package/dist/apis/anilist/query/Staff.js +2 -75
  36. package/dist/apis/anilist/query/User.js +8 -546
  37. package/dist/apis/anilist/query/Viewer.js +35 -0
  38. package/package.json +3 -2
  39. package/.eslintignore +0 -1
  40. package/.github/workflows/code_quality.yml +0 -32
  41. package/.github/workflows/codeql.yml +0 -33
  42. package/.github/workflows/test.yml +0 -30
  43. package/__tests__/anilist.test.ts +0 -268
  44. package/babel.config.js +0 -6
  45. package/jest.config.js +0 -11
  46. package/src/AniLink.ts +0 -80
  47. package/src/apis/anilist/interfaces/ActivityHistory.ts +0 -5
  48. package/src/apis/anilist/interfaces/CoverImage.ts +0 -6
  49. package/src/apis/anilist/interfaces/Distribution.ts +0 -4
  50. package/src/apis/anilist/interfaces/ExternalLink.ts +0 -5
  51. package/src/apis/anilist/interfaces/Favoured.ts +0 -15
  52. package/src/apis/anilist/interfaces/FuzzyDate.ts +0 -5
  53. package/src/apis/anilist/interfaces/Image.ts +0 -4
  54. package/src/apis/anilist/interfaces/ListScores.ts +0 -4
  55. package/src/apis/anilist/interfaces/Media.ts +0 -59
  56. package/src/apis/anilist/interfaces/MediaListEntry.ts +0 -4
  57. package/src/apis/anilist/interfaces/MediaStatistics.ts +0 -23
  58. package/src/apis/anilist/interfaces/MediaStats.ts +0 -7
  59. package/src/apis/anilist/interfaces/Name.ts +0 -8
  60. package/src/apis/anilist/interfaces/NextAiringEpisode.ts +0 -5
  61. package/src/apis/anilist/interfaces/Ranking.ts +0 -10
  62. package/src/apis/anilist/interfaces/ScoreDistribution.ts +0 -4
  63. package/src/apis/anilist/interfaces/Staff.ts +0 -6
  64. package/src/apis/anilist/interfaces/Stat.ts +0 -24
  65. package/src/apis/anilist/interfaces/Statistics.ts +0 -6
  66. package/src/apis/anilist/interfaces/StatusDistribution.ts +0 -4
  67. package/src/apis/anilist/interfaces/StreamingEpisode.ts +0 -6
  68. package/src/apis/anilist/interfaces/Studio.ts +0 -4
  69. package/src/apis/anilist/interfaces/Tag.ts +0 -10
  70. package/src/apis/anilist/interfaces/Title.ts +0 -6
  71. package/src/apis/anilist/interfaces/Trailer.ts +0 -5
  72. package/src/apis/anilist/interfaces/UserStats.ts +0 -25
  73. package/src/apis/anilist/interfaces/responses/AiringSchedule.ts +0 -10
  74. package/src/apis/anilist/interfaces/responses/Character.ts +0 -26
  75. package/src/apis/anilist/interfaces/responses/Media.ts +0 -118
  76. package/src/apis/anilist/interfaces/responses/MediaList.ts +0 -24
  77. package/src/apis/anilist/interfaces/responses/MediaListCollectionResponse.ts +0 -37
  78. package/src/apis/anilist/interfaces/responses/MediaTrend.ts +0 -13
  79. package/src/apis/anilist/interfaces/responses/Staff.ts +0 -53
  80. package/src/apis/anilist/interfaces/responses/User.ts +0 -72
  81. package/src/apis/anilist/mutation/UpdateUser.ts +0 -162
  82. package/src/apis/anilist/query/AiringSchedule.ts +0 -160
  83. package/src/apis/anilist/query/Character.ts +0 -75
  84. package/src/apis/anilist/query/Media.ts +0 -295
  85. package/src/apis/anilist/query/MediaList.ts +0 -192
  86. package/src/apis/anilist/query/MediaListCollection.ts +0 -673
  87. package/src/apis/anilist/query/MediaTrend.ts +0 -169
  88. package/src/apis/anilist/query/Staff.ts +0 -122
  89. package/src/apis/anilist/query/User.ts +0 -567
  90. package/src/base/APIWrapper.ts +0 -7
  91. package/src/base/RequestHandler.ts +0 -21
  92. package/tsconfig.json +0 -15
package/dist/AniLink.js CHANGED
@@ -8,7 +8,10 @@ const Character_1 = require("./apis/anilist/query/Character");
8
8
  const MediaList_1 = require("./apis/anilist/query/MediaList");
9
9
  const Staff_1 = require("./apis/anilist/query/Staff");
10
10
  const MediaListCollection_1 = require("./apis/anilist/query/MediaListCollection");
11
+ const GenreCollection_1 = require("./apis/anilist/query/GenreCollection");
11
12
  const UpdateUser_1 = require("./apis/anilist/mutation/UpdateUser");
13
+ const MediaTagCollection_1 = require("./apis/anilist/query/MediaTagCollection");
14
+ const Viewer_1 = require("./apis/anilist/query/Viewer");
12
15
  class AniLink {
13
16
  constructor(authToken) {
14
17
  const userQueryInstance = new User_1.UserQuery(authToken);
@@ -19,6 +22,9 @@ class AniLink {
19
22
  const staffQueryInstance = new Staff_1.StaffQuery(authToken);
20
23
  const mediaListQueryInstance = new MediaList_1.MediaListQuery(authToken);
21
24
  const mediaListCollectionQueryInstance = new MediaListCollection_1.MediaListCollectionQuery(authToken);
25
+ const genreCollectionQueryInstance = new GenreCollection_1.GenreCollectionQuery(authToken);
26
+ const mediaTagCollectionQueryInstance = new MediaTagCollection_1.MediaTagCollectionQuery(authToken);
27
+ const viewerQueryInstance = new Viewer_1.ViewerQuery(authToken);
22
28
  const updateUserMutationInstance = new UpdateUser_1.UpdateUserMutation(authToken);
23
29
  this.anilist = {
24
30
  query: {
@@ -29,7 +35,10 @@ class AniLink {
29
35
  character: characterQueryInstance.character.bind(characterQueryInstance),
30
36
  staff: staffQueryInstance.staff.bind(staffQueryInstance),
31
37
  mediaList: mediaListQueryInstance.mediaList.bind(mediaListQueryInstance),
32
- mediaListCollection: mediaListCollectionQueryInstance.mediaListCollection.bind(mediaListQueryInstance)
38
+ mediaListCollection: mediaListCollectionQueryInstance.mediaListCollection.bind(mediaListQueryInstance),
39
+ genreCollection: genreCollectionQueryInstance.genreCollection.bind(genreCollectionQueryInstance),
40
+ mediaTagCollection: mediaTagCollectionQueryInstance.mediaTagCollection.bind(mediaTagCollectionQueryInstance),
41
+ viewer: viewerQueryInstance.viewer.bind(viewerQueryInstance)
33
42
  },
34
43
  mutation: {
35
44
  updateUser: updateUserMutationInstance.updateUser.bind(updateUserMutationInstance)
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoverImageSchema = void 0;
4
+ exports.CoverImageSchema = `
5
+ coverImage {
6
+ extraLarge
7
+ large
8
+ medium
9
+ color
10
+ }
11
+ `;
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalLinkSchema = void 0;
4
+ exports.ExternalLinkSchema = `
5
+ externalLinks {
6
+ id
7
+ url
8
+ site
9
+ }
10
+ `;
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FuzzyDateSchema = void 0;
4
+ exports.FuzzyDateSchema = `
5
+ year
6
+ month
7
+ day
8
+ `;
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageSchema = void 0;
4
+ exports.ImageSchema = `
5
+ image {
6
+ large
7
+ medium
8
+ }
9
+ `;
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaListEntrySchema = void 0;
4
+ exports.MediaListEntrySchema = `
5
+ mediaListEntry {
6
+ id
7
+ status
8
+ }
9
+ `;
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NameSchema = void 0;
4
+ exports.NameSchema = `
5
+ name {
6
+ first
7
+ last
8
+ full
9
+ native
10
+ }
11
+ `;
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NextAiringEpisodeSchema = void 0;
4
+ exports.NextAiringEpisodeSchema = `
5
+ nextAiringEpisode {
6
+ airingAt
7
+ timeUntilAiring
8
+ episode
9
+ }
10
+ `;
@@ -1,2 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RankingSchema = void 0;
4
+ exports.RankingSchema = `
5
+ rankings {
6
+ id
7
+ rank
8
+ type
9
+ format
10
+ year
11
+ season
12
+ allTime
13
+ context
14
+ }
15
+ `;
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScoreDistributionSchema = void 0;
4
+ exports.ScoreDistributionSchema = `
5
+ scoreDistribution {
6
+ score
7
+ amount
8
+ }
9
+ `;
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatusDistributionSchema = void 0;
4
+ exports.StatusDistributionSchema = `
5
+ statusDistribution {
6
+ status
7
+ amount
8
+ }
9
+ `;
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamingEpisodeSchema = void 0;
4
+ exports.StreamingEpisodeSchema = `
5
+ streamingEpisodes {
6
+ title
7
+ thumbnail
8
+ url
9
+ site
10
+ }
11
+ `;
@@ -1,2 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagSchema = void 0;
4
+ exports.TagSchema = `
5
+ id
6
+ name
7
+ description
8
+ category
9
+ rank
10
+ isGeneralSpoiler
11
+ isMediaSpoiler
12
+ isAdult
13
+ userId
14
+ `;
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TitleSchema = void 0;
4
+ exports.TitleSchema = `
5
+ title {
6
+ romaji
7
+ english
8
+ native
9
+ userPreferred
10
+ }
11
+ `;
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrailerSchema = void 0;
4
+ exports.TrailerSchema = `
5
+ trailer {
6
+ id
7
+ site
8
+ thumbnail
9
+ }
10
+ `;
@@ -1,2 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserMangaStatsSchema = exports.UserAnimeStatsSchema = void 0;
4
+ exports.UserAnimeStatsSchema = `
5
+ count
6
+ meanScore
7
+ minutesWatched
8
+ mediaIds
9
+ `;
10
+ exports.UserMangaStatsSchema = `
11
+ count
12
+ meanScore
13
+ chaptersRead
14
+ mediaIds
15
+ `;
@@ -1,2 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiringScheduleSchema = void 0;
4
+ const Media_1 = require("./Media");
5
+ exports.AiringScheduleSchema = `
6
+ id
7
+ airingAt
8
+ timeUntilAiring
9
+ episode
10
+ mediaId
11
+ media {
12
+ ${Media_1.MediaSchema}
13
+ }
14
+ `;
@@ -1,2 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CharacterSchema = void 0;
4
+ const FuzzyDate_1 = require("../FuzzyDate");
5
+ const Name_1 = require("../Name");
6
+ const Image_1 = require("../Image");
7
+ const Title_1 = require("../Title");
8
+ exports.CharacterSchema = `
9
+ id
10
+ ${Name_1.NameSchema}
11
+ ${Image_1.ImageSchema}
12
+ description(asHtml: $asHtml)
13
+ gender
14
+ dateOfBirth {
15
+ ${FuzzyDate_1.FuzzyDateSchema}
16
+ }
17
+ age
18
+ bloodType
19
+ isFavourite
20
+ isFavouriteBlocked
21
+ siteUrl
22
+ media(sort: $mediaSort, onList: $mediaOnList, page: $mediaPage, perPage: $mediaPerPage) {
23
+ nodes {
24
+ id
25
+ ${Title_1.TitleSchema}
26
+ }
27
+ }
28
+ favourites
29
+ modNotes
30
+ `;
@@ -1,2 +1,210 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaSchema = exports.MediaWithRelationsSchema = void 0;
4
+ const Title_1 = require("../Title");
5
+ const FuzzyDate_1 = require("../FuzzyDate");
6
+ const Trailer_1 = require("../Trailer");
7
+ const CoverImage_1 = require("../CoverImage");
8
+ const Tag_1 = require("../Tag");
9
+ const NextAiringEpisode_1 = require("../NextAiringEpisode");
10
+ const ExternalLink_1 = require("../ExternalLink");
11
+ const StreamingEpisode_1 = require("../StreamingEpisode");
12
+ const Ranking_1 = require("../Ranking");
13
+ const MediaListEntry_1 = require("../MediaListEntry");
14
+ const Name_1 = require("../Name");
15
+ const Image_1 = require("../Image");
16
+ const StatusDistribution_1 = require("../StatusDistribution");
17
+ const ScoreDistribution_1 = require("../ScoreDistribution");
18
+ exports.MediaWithRelationsSchema = `
19
+ id
20
+ idMal
21
+ ${Title_1.TitleSchema}
22
+ type
23
+ format
24
+ status
25
+ description (asHtml: $asHtml)
26
+ startDate {
27
+ ${FuzzyDate_1.FuzzyDateSchema}
28
+ }
29
+ endDate {
30
+ ${FuzzyDate_1.FuzzyDateSchema}
31
+ }
32
+ season
33
+ seasonYear
34
+ seasonInt
35
+ episodes
36
+ duration
37
+ chapters
38
+ volumes
39
+ countryOfOrigin
40
+ isLicensed
41
+ source
42
+ hashtag
43
+ ${Trailer_1.TrailerSchema}
44
+ updatedAt
45
+ ${CoverImage_1.CoverImageSchema}
46
+ bannerImage
47
+ genres
48
+ synonyms
49
+ averageScore
50
+ meanScore
51
+ popularity
52
+ isLocked
53
+ trending
54
+ favourites
55
+ tags {
56
+ ${Tag_1.TagSchema}
57
+ }
58
+ relations {
59
+ edges {
60
+ id
61
+ relationType
62
+ isMainStudio
63
+ characters {
64
+ id
65
+ ${Name_1.NameSchema}
66
+ ${Image_1.ImageSchema}
67
+ description (asHtml: $asHtml)
68
+ gender
69
+ dateOfBirth {
70
+ ${FuzzyDate_1.FuzzyDateSchema}
71
+ }
72
+ age
73
+ bloodType
74
+ isFavourite
75
+ isFavouriteBlocked
76
+ siteUrl
77
+ favourites
78
+ modNotes
79
+ }
80
+ characterRole
81
+ characterName
82
+ roleNotes
83
+ dubGroup
84
+ staffRole
85
+ node {
86
+ id
87
+ ${Title_1.TitleSchema}
88
+ }
89
+ }
90
+ }
91
+ characters {
92
+ edges {
93
+ id
94
+ role
95
+ name
96
+ voiceActors {
97
+ id
98
+ ${Name_1.NameSchema}
99
+ ${Image_1.ImageSchema}
100
+ }
101
+ media {
102
+ id
103
+ ${Title_1.TitleSchema}
104
+ ${CoverImage_1.CoverImageSchema}
105
+ }
106
+ favouriteOrder
107
+ node {
108
+ id
109
+ ${Name_1.NameSchema}
110
+ ${Image_1.ImageSchema}
111
+ }
112
+ }
113
+ }
114
+ staff {
115
+ edges {
116
+ id
117
+ role
118
+ favouriteOrder
119
+ node {
120
+ id
121
+ ${Name_1.NameSchema}
122
+ ${Image_1.ImageSchema}
123
+ }
124
+ }
125
+ }
126
+ studios {
127
+ edges {
128
+ id
129
+ isMain
130
+ favouriteOrder
131
+ node {
132
+ id
133
+ name
134
+ isAnimationStudio
135
+ siteUrl
136
+ }
137
+ }
138
+ }
139
+ isFavourite
140
+ isAdult
141
+ ${NextAiringEpisode_1.NextAiringEpisodeSchema}
142
+ ${ExternalLink_1.ExternalLinkSchema}
143
+ ${StreamingEpisode_1.StreamingEpisodeSchema}
144
+ ${Ranking_1.RankingSchema}
145
+ ${MediaListEntry_1.MediaListEntrySchema}
146
+ stats {
147
+ ${StatusDistribution_1.StatusDistributionSchema}
148
+ ${ScoreDistribution_1.ScoreDistributionSchema}
149
+ }
150
+ siteUrl
151
+ autoCreateForumThread
152
+ isRecommendationBlocked
153
+ modNotes
154
+ `;
155
+ exports.MediaSchema = `
156
+ id
157
+ idMal
158
+ ${Title_1.TitleSchema}
159
+ type
160
+ format
161
+ status
162
+ description (asHtml: $asHtml)
163
+ startDate {
164
+ ${FuzzyDate_1.FuzzyDateSchema}
165
+ }
166
+ endDate {
167
+ ${FuzzyDate_1.FuzzyDateSchema}
168
+ }
169
+ season
170
+ seasonYear
171
+ seasonInt
172
+ episodes
173
+ duration
174
+ chapters
175
+ volumes
176
+ countryOfOrigin
177
+ isLicensed
178
+ source
179
+ hashtag
180
+ ${Trailer_1.TrailerSchema}
181
+ updatedAt
182
+ ${CoverImage_1.CoverImageSchema}
183
+ bannerImage
184
+ genres
185
+ synonyms
186
+ averageScore
187
+ meanScore
188
+ popularity
189
+ isLocked
190
+ trending
191
+ favourites
192
+ tags {
193
+ ${Tag_1.TagSchema}
194
+ }
195
+ isFavourite
196
+ isAdult
197
+ ${NextAiringEpisode_1.NextAiringEpisodeSchema}
198
+ ${ExternalLink_1.ExternalLinkSchema}
199
+ ${StreamingEpisode_1.StreamingEpisodeSchema}
200
+ ${Ranking_1.RankingSchema}
201
+ ${MediaListEntry_1.MediaListEntrySchema}
202
+ stats {
203
+ ${StatusDistribution_1.StatusDistributionSchema}
204
+ ${ScoreDistribution_1.ScoreDistributionSchema}
205
+ }
206
+ siteUrl
207
+ autoCreateForumThread
208
+ isRecommendationBlocked
209
+ modNotes
210
+ `;
@@ -1,2 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaListSchema = void 0;
4
+ const FuzzyDate_1 = require("../FuzzyDate");
5
+ const Media_1 = require("./Media");
6
+ exports.MediaListSchema = `
7
+ id
8
+ userId
9
+ mediaId
10
+ status
11
+ score (format: $ScoreFormat)
12
+ progress
13
+ progressVolumes
14
+ repeat
15
+ priority
16
+ private
17
+ notes
18
+ hiddenFromStatusLists
19
+ customLists (asArray: $asArray)
20
+ advancedScores
21
+ startedAt {
22
+ ${FuzzyDate_1.FuzzyDateSchema}
23
+ }
24
+ completedAt {
25
+ ${FuzzyDate_1.FuzzyDateSchema}
26
+ }
27
+ updatedAt
28
+ createdAt
29
+ media {
30
+ ${Media_1.MediaSchema}
31
+ }
32
+ `;
@@ -1,2 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaListCollectionQuerySchema = void 0;
4
+ const FuzzyDate_1 = require("../FuzzyDate");
5
+ exports.MediaListCollectionQuerySchema = `
6
+ query ($userId: Int, $userName: String, $type: MediaType, $status: MediaListStatus, $notes: String, $startedAt: FuzzyDateInt, $completedAt: FuzzyDateInt, $forceSingleCompletedList: Boolean, $chunk: Int, $perChunk: Int, $status_in: [MediaListStatus], $status_not_in: [MediaListStatus], $status_not: MediaListStatus, $notes_like: String, $startedAt_greater: FuzzyDateInt, $startedAt_lesser: FuzzyDateInt, $startedAt_like: String, $completedAt_greater: FuzzyDateInt, $completedAt_lesser: FuzzyDateInt, $completedAt_like: String, $sort: [MediaListSort], $scoreFormat: ScoreFormat, $asArray: Boolean) {
7
+ MediaListCollection (userId: $userId, userName: $userName, type: $type, status: $status, notes: $notes, startedAt: $startedAt, completedAt: $completedAt, forceSingleCompletedList: $forceSingleCompletedList, chunk: $chunk, perChunk: $perChunk, status_in: $status_in, status_not_in: $status_not_in, status_not: $status_not, notes_like: $notes_like, startedAt_greater: $startedAt_greater, startedAt_lesser: $startedAt_lesser, startedAt_like: $startedAt_like, completedAt_greater: $completedAt_greater, completedAt_lesser: $completedAt_lesser, completedAt_like: $completedAt_like, sort: $sort) {
8
+ lists {
9
+ entries {
10
+ id
11
+ userId
12
+ mediaId
13
+ status
14
+ score (format: $scoreFormat)
15
+ progress
16
+ progressVolumes
17
+ repeat
18
+ priority
19
+ private
20
+ notes
21
+ hiddenFromStatusLists
22
+ customLists (asArray: $asArray)
23
+ advancedScores
24
+ startedAt {
25
+ ${FuzzyDate_1.FuzzyDateSchema}
26
+ }
27
+ completedAt {
28
+ ${FuzzyDate_1.FuzzyDateSchema}
29
+ }
30
+ updatedAt
31
+ createdAt
32
+ }
33
+ name
34
+ isCustomList
35
+ isSplitCompletedList
36
+ status
37
+ }
38
+ hasNextChunk
39
+ }
40
+ }
41
+ `;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaTrendSchema = void 0;
4
+ const Media_1 = require("./Media");
5
+ exports.MediaTrendSchema = `
6
+ mediaId
7
+ date
8
+ trending
9
+ averageScore
10
+ popularity
11
+ inProgress
12
+ releasing
13
+ episode
14
+ media {
15
+ ${Media_1.MediaSchema}
16
+ }
17
+ `;
@@ -1,2 +1,55 @@
1
1
  "use strict";
2
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
+ exports.StaffSchema = `
9
+ id
10
+ ${Name_1.NameSchema}
11
+ languageV2
12
+ ${Image_1.ImageSchema}
13
+ description(asHtml: $asHtml)
14
+ primaryOccupations
15
+ gender
16
+ dateOfBirth {
17
+ ${FuzzyDate_1.FuzzyDateSchema}
18
+ }
19
+ dateOfDeath {
20
+ ${FuzzyDate_1.FuzzyDateSchema}
21
+ }
22
+ age
23
+ yearsActive
24
+ homeTown
25
+ bloodType
26
+ isFavourite
27
+ isFavouriteBlocked
28
+ siteUrl
29
+ staffMedia (sort: $staffMediaSort, type: $staffMediaType, onList: $staffMediaOnList, page: $staffMediaPage, perPage: $staffMediaPerPage) {
30
+ nodes {
31
+ id
32
+ ${Title_1.TitleSchema}
33
+ }
34
+ }
35
+ characters (sort: $charactersSort, page: $charactersPage, perPage: $charactersPerPage) {
36
+ nodes {
37
+ id
38
+ ${Name_1.NameSchema}
39
+ }
40
+ }
41
+ characterMedia (sort: $characterMediaSort, onList: $characterMediaOnList, page: $characterMediaPage, perPage: $characterMediaPerPage) {
42
+ nodes {
43
+ id
44
+ ${Title_1.TitleSchema}
45
+ }
46
+ }
47
+ submitter {
48
+ id
49
+ name
50
+ }
51
+ submissionStatus
52
+ submissionNotes
53
+ favourites
54
+ modNotes
55
+ `;