anilink-api-wrapper 1.18.6 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/AniLink.js +1 -1
- package/dist/apis/anilist/mutation/SaveMediaListEntry.js +2 -2
- package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +2 -2
- package/dist/apis/anilist/mutation/UpdateUser.js +2 -2
- package/dist/apis/anilist/query/Activity.js +2 -2
- package/dist/apis/anilist/query/ActivityReply.js +1 -1
- package/dist/apis/anilist/query/AiringSchedule.js +2 -2
- package/dist/apis/anilist/query/Character.js +20 -0
- package/dist/apis/anilist/query/ExternalLinkSourceCollection.js +10 -0
- package/dist/apis/anilist/query/Follower.js +14 -0
- package/dist/apis/anilist/query/Following.js +14 -0
- package/dist/apis/anilist/query/Markdown.js +9 -1
- package/dist/apis/anilist/query/Media.js +84 -0
- package/dist/apis/anilist/query/MediaList.js +40 -0
- package/dist/apis/anilist/query/MediaListCollection.js +32 -0
- package/dist/apis/anilist/query/MediaTagCollection.js +7 -0
- package/dist/apis/anilist/query/MediaTrend.js +34 -0
- package/dist/apis/anilist/query/Notification.js +12 -0
- package/dist/apis/anilist/query/Recommendation.js +20 -2
- package/dist/apis/anilist/query/Review.js +14 -0
- package/dist/apis/anilist/query/SiteStatistics.js +28 -0
- package/dist/apis/anilist/query/Staff.js +29 -0
- package/dist/apis/anilist/query/Studio.js +32 -0
- package/dist/apis/anilist/query/Thread.js +18 -0
- package/dist/apis/anilist/query/ThreadComment.js +13 -0
- package/dist/apis/anilist/query/User.js +18 -0
- package/dist/apis/anilist/query/Viewer.js +14 -2
- package/dist/apis/anilist/query/page/Activities.js +38 -0
- package/dist/apis/anilist/query/page/ActivityReplies.js +12 -0
- package/dist/apis/anilist/query/page/AiringSchedules.js +30 -0
- package/dist/apis/anilist/query/page/Characters.js +22 -0
- package/dist/apis/anilist/query/page/Followers.js +16 -0
- package/dist/apis/anilist/query/page/Followings.js +16 -0
- package/dist/apis/anilist/query/page/Likes.js +12 -0
- package/dist/apis/anilist/query/page/MediaLists.js +42 -0
- package/dist/apis/anilist/query/page/MediaTrends.js +36 -0
- package/dist/apis/anilist/query/page/Medias.js +86 -0
- package/dist/apis/anilist/query/page/Notifications.js +14 -0
- package/dist/apis/anilist/query/page/Recommendations.js +20 -0
- package/dist/apis/anilist/query/page/Reviews.js +16 -0
- package/dist/apis/anilist/query/page/Staffs.js +31 -0
- package/dist/apis/anilist/query/page/Studios.js +34 -0
- package/dist/apis/anilist/query/page/ThreadCommments.js +15 -0
- package/dist/apis/anilist/query/page/Threads.js +20 -0
- package/dist/apis/anilist/query/page/Users.js +20 -0
- package/dist/apis/anilist/types/Format.js +30 -0
- package/dist/apis/anilist/types/Season.js +13 -0
- package/dist/apis/anilist/types/Sort.js +240 -1
- package/dist/apis/anilist/types/Source.js +25 -0
- package/dist/apis/anilist/types/Status.js +26 -0
- package/dist/apis/anilist/types/Type.js +44 -0
- package/package.json +1 -1
- package/.eslintrc.js +0 -16
- package/.gitattributes +0 -1
|
@@ -13,6 +13,8 @@ exports.ReviewQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const Review_1 = require("../interfaces/responses/query/Review");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `ReviewQuery` is a class representing a query for review data.
|
|
18
20
|
* It includes a method to send the review query and receive the response.
|
|
@@ -35,6 +37,18 @@ class ReviewQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
review(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be set');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
id: 'number',
|
|
45
|
+
mediaId: 'number',
|
|
46
|
+
userId: 'number',
|
|
47
|
+
mediaType: 'string',
|
|
48
|
+
sort: Sort_1.ReviewSortMappings,
|
|
49
|
+
asHtml: 'boolean'
|
|
50
|
+
};
|
|
51
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
52
|
const query = `
|
|
39
53
|
query ($id: Int, $mediaId: Int, $userId: Int, $mediaType: MediaType, $sort: [ReviewSort], $asHtml: Boolean) {
|
|
40
54
|
Review (id: $id, mediaId: $mediaId, userId: $userId, mediaType: $mediaType, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.SiteStatisticsQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const SiteStatistics_1 = require("../interfaces/responses/query/SiteStatistics");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `SiteStatisticsQuery` is a class representing a query for site statistics data.
|
|
18
20
|
* It includes a method to send the site statistics query and receive the response.
|
|
@@ -35,6 +37,32 @@ class SiteStatisticsQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
siteStatistics() {
|
|
37
39
|
return __awaiter(this, arguments, void 0, function* (variables = {}) {
|
|
40
|
+
const variableTypeMappings = {
|
|
41
|
+
usersSort: Sort_1.SiteTrendSortMappings,
|
|
42
|
+
usersPage: 'number',
|
|
43
|
+
usersPerPage: 'number',
|
|
44
|
+
animeSort: Sort_1.SiteTrendSortMappings,
|
|
45
|
+
animePage: 'number',
|
|
46
|
+
animePerPage: 'number',
|
|
47
|
+
mangaSort: Sort_1.SiteTrendSortMappings,
|
|
48
|
+
mangaPage: 'number',
|
|
49
|
+
mangaPerPage: 'number',
|
|
50
|
+
charactersSort: Sort_1.SiteTrendSortMappings,
|
|
51
|
+
charactersPage: 'number',
|
|
52
|
+
charactersPerPage: 'number',
|
|
53
|
+
staffSort: Sort_1.SiteTrendSortMappings,
|
|
54
|
+
staffPage: 'number',
|
|
55
|
+
staffPerPage: 'number',
|
|
56
|
+
studiosSort: Sort_1.SiteTrendSortMappings,
|
|
57
|
+
studiosPage: 'number',
|
|
58
|
+
studiosPerPage: 'number',
|
|
59
|
+
reviewsSort: Sort_1.SiteTrendSortMappings,
|
|
60
|
+
reviewsPage: 'number',
|
|
61
|
+
reviewsPerPage: 'number'
|
|
62
|
+
};
|
|
63
|
+
if (Object(variables).length > 0) {
|
|
64
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
65
|
+
}
|
|
38
66
|
const query = `
|
|
39
67
|
query ($usersSort: [SiteTrendSort], $usersPage: Int, $usersPerPage: Int, $animeSort: [SiteTrendSort], $animePage: Int, $animePerPage: Int, $mangaSort: [SiteTrendSort], $mangaPage: Int, $mangaPerPage: Int, $charactersSort: [SiteTrendSort], $charactersPage: Int, $charactersPerPage: Int, $staffSort: [SiteTrendSort], $staffPage: Int, $staffPerPage: Int, $studiosSort: [SiteTrendSort], $studiosPage: Int, $studiosPerPage: Int, $reviewsSort: [SiteTrendSort], $reviewsPage: Int, $reviewsPerPage: Int) {
|
|
40
68
|
SiteStatistics {
|
|
@@ -13,6 +13,9 @@ exports.StaffQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const Staff_1 = require("../interfaces/responses/query/Staff");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const Type_1 = require("../types/Type");
|
|
18
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
19
|
/**
|
|
17
20
|
* `StaffQuery` is a class representing a query for staff data.
|
|
18
21
|
* It includes a method to send the staff query and receive the response.
|
|
@@ -35,6 +38,32 @@ class StaffQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
38
|
*/
|
|
36
39
|
staff(variables) {
|
|
37
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
if (!variables) {
|
|
42
|
+
throw new Error('At least one variable must be set');
|
|
43
|
+
}
|
|
44
|
+
const variableTypeMappings = {
|
|
45
|
+
id: 'number',
|
|
46
|
+
isBirthday: 'boolean',
|
|
47
|
+
search: 'String',
|
|
48
|
+
id_not: 'number',
|
|
49
|
+
id_in: 'number[]',
|
|
50
|
+
id_not_in: 'number[]',
|
|
51
|
+
sort: Sort_1.StaffSortMappings,
|
|
52
|
+
asHtml: 'boolean',
|
|
53
|
+
staffMediaSort: Sort_1.MediaSortMappings,
|
|
54
|
+
staffMediaType: Type_1.MediaTypeMappings,
|
|
55
|
+
staffMediaOnList: 'boolean',
|
|
56
|
+
staffMediaPage: 'number',
|
|
57
|
+
staffMediaPerPage: 'number',
|
|
58
|
+
charactersSort: Sort_1.CharacterSortMappings,
|
|
59
|
+
charactersPage: 'number',
|
|
60
|
+
charactersPerPage: 'number',
|
|
61
|
+
characterMediaSort: Sort_1.MediaSortMappings,
|
|
62
|
+
characterMediaOnList: 'boolean',
|
|
63
|
+
characterMediaPage: 'number',
|
|
64
|
+
characterMediaPerPage: 'number'
|
|
65
|
+
};
|
|
66
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
67
|
const query = `
|
|
39
68
|
query ($id: Int, $isBirthday: Boolean, $search: String, $id_not: Int, $id_in: [Int], $id_not_in: [Int], $sort: [StaffSort], $asHtml: Boolean, $staffMediaSort: [MediaSort], $staffMediaType: MediaType, $staffMediaOnList: Boolean, $staffMediaPage: Int, $staffMediaPerPage: Int, $charactersSort: [CharacterSort], $charactersPage: Int, $charactersPerPage: Int, $characterMediaSort: [MediaSort], $characterMediaOnList: Boolean, $characterMediaPage: Int, $characterMediaPerPage: Int) {
|
|
40
69
|
Staff (id: $id, isBirthday: $isBirthday, search: $search, id_not: $id_not, id_in: $id_in, id_not_in: $id_not_in, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.StudioQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const Studio_1 = require("../interfaces/responses/query/Studio");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `StudioQuery` is a class representing a query for studio data.
|
|
18
20
|
* It includes a method to send the studio query and receive the response.
|
|
@@ -35,6 +37,36 @@ class StudioQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
studio(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be provided');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
id: 'number',
|
|
45
|
+
search: 'string',
|
|
46
|
+
id_not: 'number',
|
|
47
|
+
id_in: 'number[]',
|
|
48
|
+
id_not_in: 'number[]',
|
|
49
|
+
sort: Sort_1.StudioSortMappings,
|
|
50
|
+
asHtml: 'boolean',
|
|
51
|
+
mediaSort: Sort_1.MediaSortMappings,
|
|
52
|
+
mediaIsMain: 'boolean',
|
|
53
|
+
mediaOnList: 'boolean',
|
|
54
|
+
mediaPage: 'number',
|
|
55
|
+
mediaPerPage: 'number',
|
|
56
|
+
staffMediaSort: Sort_1.MediaSortMappings,
|
|
57
|
+
staffMediaType: 'string',
|
|
58
|
+
staffMediaOnList: 'boolean',
|
|
59
|
+
staffMediaPage: 'number',
|
|
60
|
+
staffMediaPerPage: 'number',
|
|
61
|
+
charactersSort: Sort_1.CharacterSortMappings,
|
|
62
|
+
charactersPage: 'number',
|
|
63
|
+
charactersPerPage: 'number',
|
|
64
|
+
characterMediaSort: Sort_1.MediaSortMappings,
|
|
65
|
+
characterMediaOnList: 'boolean',
|
|
66
|
+
characterMediaPage: 'number',
|
|
67
|
+
characterMediaPerPage: 'number'
|
|
68
|
+
};
|
|
69
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
70
|
const query = `
|
|
39
71
|
query ($id: Int, $search: String, $id_not: Int, $id_in: [Int], $id_not_in: [Int], $sort: [StudioSort], $asHtml: Boolean, $mediaSort: [MediaSort], $mediaIsMain: Boolean, $mediaOnList: Boolean, $mediaPage: Int, $mediaPerPage: Int, $staffMediaSort: [MediaSort], $staffMediaType: MediaType, $staffMediaOnList: Boolean, $staffMediaPage: Int, $staffMediaPerPage: Int, $charactersSort: [CharacterSort], $charactersPage: Int, $charactersPerPage: Int, $characterMediaSort: [MediaSort], $characterMediaOnList: Boolean, $characterMediaPage: Int, $characterMediaPerPage: Int) {
|
|
40
72
|
Studio (id: $id, search: $search, id_not: $id_not, id_in: $id_in, id_not_in: $id_not_in, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.ThreadQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const Thread_1 = require("../interfaces/responses/query/Thread");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `ThreadQuery` is a class representing a query for thread data.
|
|
18
20
|
* It includes a method to send the thread query and receive the response.
|
|
@@ -35,6 +37,22 @@ class ThreadQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
thread(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be provided');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
id: 'number',
|
|
45
|
+
userId: 'number',
|
|
46
|
+
replyUserId: 'number',
|
|
47
|
+
subscribed: 'boolean',
|
|
48
|
+
categoryId: 'number',
|
|
49
|
+
mediaCategoryId: 'number',
|
|
50
|
+
search: 'string',
|
|
51
|
+
id_in: 'number[]',
|
|
52
|
+
sort: Sort_1.ThreadSortMappings,
|
|
53
|
+
asHtml: 'boolean'
|
|
54
|
+
};
|
|
55
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
56
|
const query = `
|
|
39
57
|
query ($id: Int, $userId: Int, $replyUserId: Int, $subscribed: Boolean, $categoryId: Int, $mediaCategoryId: Int, $search: String, $id_in: [Int], $sort: [ThreadSort], $asHtml: Boolean) {
|
|
40
58
|
Thread (id: $id, userId: $userId, replyUserId: $replyUserId, subscribed: $subscribed, categoryId: $categoryId, mediaCategoryId: $mediaCategoryId, search: $search, id_in: $id_in, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.ThreadCommentQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const ThreadComment_1 = require("../interfaces/responses/query/ThreadComment");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `ThreadCommentQuery` is a class representing a query for thread comment data.
|
|
18
20
|
* It includes a method to send the thread comment query and receive the response.
|
|
@@ -35,6 +37,17 @@ class ThreadCommentQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
threadComment(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be provided');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
id: 'number',
|
|
45
|
+
threadId: 'number',
|
|
46
|
+
userId: 'number',
|
|
47
|
+
sort: Sort_1.ThreadSortMappings,
|
|
48
|
+
asHtml: 'boolean'
|
|
49
|
+
};
|
|
50
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
51
|
const query = `
|
|
39
52
|
query ($id: Int, $threadId: Int, $userId: Int, $sort: [ThreadCommentSort], $asHtml: Boolean) {
|
|
40
53
|
ThreadComment (id: $id, threadId: $threadId, userId: $userId, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.UserQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const User_1 = require("../interfaces/responses/query/User");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `UserQuery` is a class representing a query for user data.
|
|
18
20
|
* It includes a method to send the user query and receive the response.
|
|
@@ -35,6 +37,22 @@ class UserQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
user(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be provided');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
id: 'number',
|
|
45
|
+
name: 'string',
|
|
46
|
+
isModerator: 'boolean',
|
|
47
|
+
search: 'string',
|
|
48
|
+
sort: Sort_1.UserSortMappings,
|
|
49
|
+
asHtml: 'boolean',
|
|
50
|
+
animeStatLimit: 'number',
|
|
51
|
+
mangaStatLimit: 'number',
|
|
52
|
+
animeStatSort: Sort_1.UserStatisticSortMappings,
|
|
53
|
+
mangaStatSort: Sort_1.UserStatisticSortMappings
|
|
54
|
+
};
|
|
55
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
56
|
const query = `
|
|
39
57
|
query ($id: Int, $name: String, $isModerator: Boolean, $search: String, $sort: [UserSort], $asHtml: Boolean, $animeStatLimit: Int, $mangaStatLimit: Int, $animeStatSort: [UserStatisticsSort], $mangaStatSort: [UserStatisticsSort]) {
|
|
40
58
|
User (id: $id, name: $name, isModerator: $isModerator, search: $search, sort: $sort) {
|
|
@@ -13,6 +13,8 @@ exports.ViewerQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
15
|
const User_1 = require("../interfaces/responses/query/User");
|
|
16
|
+
const Sort_1 = require("../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `ViewerQuery` is a class representing a query for viewer data.
|
|
18
20
|
* It includes a method to send the viewer query and receive the response.
|
|
@@ -33,8 +35,18 @@ class ViewerQuery extends APIWrapper_1.APIWrapper {
|
|
|
33
35
|
* @param variables - The variables for the query.
|
|
34
36
|
* @returns The response from the query request.
|
|
35
37
|
*/
|
|
36
|
-
viewer(
|
|
37
|
-
return __awaiter(this,
|
|
38
|
+
viewer() {
|
|
39
|
+
return __awaiter(this, arguments, void 0, function* (variables = {}) {
|
|
40
|
+
const variableTypeMappings = {
|
|
41
|
+
asHtml: 'boolean',
|
|
42
|
+
animeStatLimit: 'number',
|
|
43
|
+
mangaStatLimit: 'number',
|
|
44
|
+
animeStatSort: Sort_1.UserStatisticSortMappings,
|
|
45
|
+
mangaStatSort: Sort_1.UserStatisticSortMappings
|
|
46
|
+
};
|
|
47
|
+
if (Object(variables).length > 0) {
|
|
48
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
49
|
+
}
|
|
38
50
|
const query = `
|
|
39
51
|
query ($asHtml: Boolean, $animeStatLimit: Int, $mangaStatLimit: Int, $animeStatSort: [UserStatisticsSort], $mangaStatSort: [UserStatisticsSort]) {
|
|
40
52
|
Viewer {
|
|
@@ -13,6 +13,9 @@ exports.ActivitiesQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const Activity_1 = require("../../interfaces/Activity");
|
|
16
|
+
const ActivityType_1 = require("../../types/ActivityType");
|
|
17
|
+
const Sort_1 = require("../../types/Sort");
|
|
18
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
19
|
/**
|
|
17
20
|
* `ActivitiesQuery` is a class representing a query for activities.
|
|
18
21
|
* It includes a method to get activities.
|
|
@@ -35,6 +38,41 @@ class ActivitiesQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
38
|
*/
|
|
36
39
|
activities(variables) {
|
|
37
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
if (!variables) {
|
|
42
|
+
throw new Error('At least one variable must be set');
|
|
43
|
+
}
|
|
44
|
+
const variableTypeMappings = {
|
|
45
|
+
page: 'number',
|
|
46
|
+
perPage: 'number',
|
|
47
|
+
id: 'number',
|
|
48
|
+
userId: 'number',
|
|
49
|
+
messengerId: 'number',
|
|
50
|
+
mediaId: 'number',
|
|
51
|
+
type: ActivityType_1.ActivityTypeMappings,
|
|
52
|
+
isFollowing: 'boolean',
|
|
53
|
+
hasReplies: 'boolean',
|
|
54
|
+
hasRepliesOrTypeText: 'boolean',
|
|
55
|
+
createdAt: 'number',
|
|
56
|
+
id_not: 'number',
|
|
57
|
+
id_in: 'number[]',
|
|
58
|
+
id_not_in: 'number[]',
|
|
59
|
+
userId_not: 'number',
|
|
60
|
+
userId_in: 'number[]',
|
|
61
|
+
userId_not_in: 'number[]',
|
|
62
|
+
messengerId_not: 'number',
|
|
63
|
+
messengerId_in: 'number[]',
|
|
64
|
+
messengerId_not_in: 'number[]',
|
|
65
|
+
mediaId_not: 'number',
|
|
66
|
+
mediaId_in: 'number[]',
|
|
67
|
+
mediaId_not_in: 'number[]',
|
|
68
|
+
type_not: ActivityType_1.ActivityTypeMappings,
|
|
69
|
+
type_in: ActivityType_1.ActivityTypeMappings,
|
|
70
|
+
type_not_in: ActivityType_1.ActivityTypeMappings,
|
|
71
|
+
createdAt_greater: 'number',
|
|
72
|
+
sort: Sort_1.ActivitySortMappings,
|
|
73
|
+
asHtml: 'boolean'
|
|
74
|
+
};
|
|
75
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
76
|
const query = `
|
|
39
77
|
query ($page: Int, $perPage: Int, $id: Int, $userId: Int, $messengerId: Int, $mediaId: Int, $type: ActivityType, $isFollowing: Boolean, $hasReplies: Boolean, $hasRepliesOrTypeText: Boolean, $createdAt: Int, $id_not: Int, $id_in: [Int], $id_not_in: [Int], $userId_not: Int, $userId_in: [Int], $userId_not_in: [Int], $messengerId_not: Int, $messengerId_in: [Int], $messengerId_not_in: [Int], $mediaId_not: Int, $mediaId_in: [Int], $mediaId_not_in: [Int], $type_not: ActivityType, $type_in: [ActivityType], $type_not_in: [ActivityType], $createdAt_greater: Int, $sort: [ActivitySort], $asHtml: Boolean) {
|
|
40
78
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,7 @@ exports.ActivityRepliesQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const ActivityReply_1 = require("../../interfaces/ActivityReply");
|
|
16
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
17
|
/**
|
|
17
18
|
* `ActivityRepliesQuery` is a class representing a query for activity replies.
|
|
18
19
|
* It includes a method to get activity replies.
|
|
@@ -35,6 +36,17 @@ class ActivityRepliesQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
36
|
*/
|
|
36
37
|
activityReplies(variables) {
|
|
37
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (!variables.id) {
|
|
40
|
+
throw new Error('The id is required');
|
|
41
|
+
}
|
|
42
|
+
const variableTypeMappings = {
|
|
43
|
+
page: 'number',
|
|
44
|
+
perPage: 'number',
|
|
45
|
+
id: 'number',
|
|
46
|
+
activityId: 'number',
|
|
47
|
+
asHtml: 'boolean'
|
|
48
|
+
};
|
|
49
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
50
|
const query = `
|
|
39
51
|
query ($page: Int, $perPage: Int, $id: Int, $activityId: Int, $asHtml: Boolean) {
|
|
40
52
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.AiringSchedulesQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const AiringSchedule_1 = require("../../interfaces/responses/query/AiringSchedule");
|
|
16
|
+
const Sort_1 = require("../../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `AiringSchedulesQuery` is a class representing a query for airing schedules.
|
|
18
20
|
* It includes a method to get airing schedules.
|
|
@@ -35,6 +37,34 @@ class AiringSchedulesQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
airingSchedules(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be set');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
page: 'number',
|
|
45
|
+
perPage: 'number',
|
|
46
|
+
id: 'number',
|
|
47
|
+
mediaId: 'number',
|
|
48
|
+
episode: 'number',
|
|
49
|
+
airingAt: 'number',
|
|
50
|
+
notYetAired: 'boolean',
|
|
51
|
+
id_not: 'number',
|
|
52
|
+
id_in: 'number[]',
|
|
53
|
+
id_not_in: 'number[]',
|
|
54
|
+
mediaId_not: 'number',
|
|
55
|
+
mediaId_in: 'number[]',
|
|
56
|
+
mediaId_not_in: 'number[]',
|
|
57
|
+
episode_not: 'number',
|
|
58
|
+
episode_in: 'number[]',
|
|
59
|
+
episode_not_in: 'number[]',
|
|
60
|
+
episode_greater: 'number',
|
|
61
|
+
episode_lesser: 'number',
|
|
62
|
+
airingAt_greater: 'number',
|
|
63
|
+
airingAt_lesser: 'number',
|
|
64
|
+
sort: Sort_1.AiringSortMappings,
|
|
65
|
+
asHtml: 'boolean'
|
|
66
|
+
};
|
|
67
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
68
|
const query = `
|
|
39
69
|
query ($page: Int, $perPage: Int, $id: Int, $mediaId: Int, $episode: Int, $airingAt: Int, $notYetAired: Boolean, $id_not: Int, $id_in: [Int], $id_not_in: [Int], $mediaId_not: Int, $mediaId_in: [Int], $mediaId_not_in: [Int], $episode_not: Int, $episode_in: [Int], $episode_not_in: [Int], $episode_greater: Int, $episode_lesser: Int, $airingAt_greater: Int, $airingAt_lesser: Int, $sort: [AiringSort], $asHtml: Boolean) {
|
|
40
70
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.CharactersQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const Character_1 = require("../../interfaces/responses/query/Character");
|
|
16
|
+
const Sort_1 = require("../../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `CharactersQuery` is a class representing a query for characters.
|
|
18
20
|
* It includes a method to get characters.
|
|
@@ -35,6 +37,26 @@ class CharactersQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
characters(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be set');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
page: 'number',
|
|
45
|
+
perPage: 'number',
|
|
46
|
+
id: 'number',
|
|
47
|
+
isBirthday: 'boolean',
|
|
48
|
+
search: 'string',
|
|
49
|
+
id_not: 'number',
|
|
50
|
+
id_in: 'number[]',
|
|
51
|
+
id_not_in: 'number[]',
|
|
52
|
+
sort: Sort_1.CharacterSortMappings,
|
|
53
|
+
asHtml: 'boolean',
|
|
54
|
+
mediaSort: Sort_1.MediaSortMappings,
|
|
55
|
+
mediaOnList: 'boolean',
|
|
56
|
+
mediaPage: 'number',
|
|
57
|
+
mediaPerPage: 'number'
|
|
58
|
+
};
|
|
59
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
60
|
const query = `
|
|
39
61
|
query ($page: Int, $perPage: Int, $id: Int, $isBirthday: Boolean, $search: String, $id_not: Int, $id_in: [Int], $id_not_in: [Int], $sort: [CharacterSort], $asHtml: Boolean, $mediaSort: [MediaSort], $mediaOnList: Boolean, $mediaPage: Int, $mediaPerPage: Int) {
|
|
40
62
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.FollowersQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const User_1 = require("../../interfaces/responses/query/User");
|
|
16
|
+
const Sort_1 = require("../../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `FollowersQuery` is a class representing a query for followers.
|
|
18
20
|
* It includes a method to get followers.
|
|
@@ -35,6 +37,20 @@ class FollowersQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
followers(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables.userId) {
|
|
41
|
+
throw new Error('userId is required');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
page: 'number',
|
|
45
|
+
perPage: 'number',
|
|
46
|
+
userId: 'number',
|
|
47
|
+
sort: Sort_1.UserSortMappings,
|
|
48
|
+
animeStatLimit: 'number',
|
|
49
|
+
mangaStatLimit: 'number',
|
|
50
|
+
animeStatSort: Sort_1.UserStatisticSortMappings,
|
|
51
|
+
mangaStatSort: Sort_1.UserStatisticSortMappings
|
|
52
|
+
};
|
|
53
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
54
|
const query = `
|
|
39
55
|
query ($page: Int, $perPage: Int, $userId: Int!, $sort: [UserSort], $asHtml: Boolean, $animeStatLimit: Int, $mangaStatLimit: Int, $animeStatSort: [UserStatisticsSort], $mangaStatSort: [UserStatisticsSort]) {
|
|
40
56
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.FollowingsQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const User_1 = require("../../interfaces/responses/query/User");
|
|
16
|
+
const Sort_1 = require("../../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `FollowingsQuery` is a class representing a query for followings.
|
|
18
20
|
* It includes a method to get followings.
|
|
@@ -35,6 +37,20 @@ class FollowingsQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
followings(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables.userId) {
|
|
41
|
+
throw new Error('userId is required');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
page: 'number',
|
|
45
|
+
perPage: 'number',
|
|
46
|
+
userId: 'number',
|
|
47
|
+
sort: Sort_1.UserSortMappings,
|
|
48
|
+
animeStatLimit: 'number',
|
|
49
|
+
mangaStatLimit: 'number',
|
|
50
|
+
animeStatSort: Sort_1.UserStatisticSortMappings,
|
|
51
|
+
mangaStatSort: Sort_1.UserStatisticSortMappings
|
|
52
|
+
};
|
|
53
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
54
|
const query = `
|
|
39
55
|
query ($page: Int, $perPage: Int, $userId: Int!, $sort: [UserSort], $asHtml: Boolean, $animeStatLimit: Int, $mangaStatLimit: Int, $animeStatSort: [UserStatisticsSort], $mangaStatSort: [UserStatisticsSort]) {
|
|
40
56
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.LikesQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const BasicUser_1 = require("../../interfaces/BasicUser");
|
|
16
|
+
const Type_1 = require("../../types/Type");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `LikesQuery` is a class representing a query for likes.
|
|
18
20
|
* It includes a method to get likes.
|
|
@@ -35,6 +37,16 @@ class LikesQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
likes(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be set');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
likeableId: 'number',
|
|
45
|
+
type: Type_1.LikeableTypeMappings,
|
|
46
|
+
page: 'number',
|
|
47
|
+
perPage: 'number'
|
|
48
|
+
};
|
|
49
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
50
|
const query = `
|
|
39
51
|
query ($likeableId: Int, $type: LikeableType, $page: Int, $perPage: Int) {
|
|
40
52
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,12 @@ exports.MediaListsQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const MediaList_1 = require("../../interfaces/responses/query/MediaList");
|
|
16
|
+
const Type_1 = require("../../types/Type");
|
|
17
|
+
const Status_1 = require("../../types/Status");
|
|
18
|
+
const FuzzyDate_1 = require("../../types/FuzzyDate");
|
|
19
|
+
const Sort_1 = require("../../types/Sort");
|
|
20
|
+
const Format_1 = require("../../types/Format");
|
|
21
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
22
|
/**
|
|
17
23
|
* `MediaListsQuery` is a class representing a query for media lists.
|
|
18
24
|
* It includes a method to get media lists.
|
|
@@ -35,6 +41,42 @@ class MediaListsQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
41
|
*/
|
|
36
42
|
mediaLists(variables) {
|
|
37
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
if (!variables) {
|
|
45
|
+
throw new Error('At least one variable must be set');
|
|
46
|
+
}
|
|
47
|
+
const variableTypeMappings = {
|
|
48
|
+
page: 'number',
|
|
49
|
+
perPage: 'number',
|
|
50
|
+
id: 'number',
|
|
51
|
+
userId: 'number',
|
|
52
|
+
userName: 'string',
|
|
53
|
+
type: Type_1.MediaTypeMappings,
|
|
54
|
+
status: Status_1.MediaListStatusMappings,
|
|
55
|
+
mediaId: 'number',
|
|
56
|
+
isFollowing: 'boolean',
|
|
57
|
+
notes: 'string',
|
|
58
|
+
startedAt: FuzzyDate_1.FuzzyDateMappings,
|
|
59
|
+
completedAt: FuzzyDate_1.FuzzyDateMappings,
|
|
60
|
+
compareWithAuthList: 'boolean',
|
|
61
|
+
userId_in: 'number[]',
|
|
62
|
+
status_in: Status_1.MediaListStatusMappings,
|
|
63
|
+
status_not_in: Status_1.MediaListStatusMappings,
|
|
64
|
+
status_not: Status_1.MediaListStatusMappings,
|
|
65
|
+
mediaId_in: 'number[]',
|
|
66
|
+
mediaId_not_in: 'number[]',
|
|
67
|
+
notes_like: 'string',
|
|
68
|
+
startedAt_greater: FuzzyDate_1.FuzzyDateMappings,
|
|
69
|
+
startedAt_lesser: FuzzyDate_1.FuzzyDateMappings,
|
|
70
|
+
startedAt_like: 'string',
|
|
71
|
+
completedAt_greater: FuzzyDate_1.FuzzyDateMappings,
|
|
72
|
+
completedAt_lesser: FuzzyDate_1.FuzzyDateMappings,
|
|
73
|
+
completedAt_like: 'string',
|
|
74
|
+
sort: Sort_1.MediaListSortMappings,
|
|
75
|
+
scoreFormat: Format_1.ScoreFormatMapping,
|
|
76
|
+
asArray: 'boolean',
|
|
77
|
+
asHtml: 'boolean'
|
|
78
|
+
};
|
|
79
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
80
|
const query = `
|
|
39
81
|
query ($page: Int, $perPage: Int, $id: Int, $userId: Int, $userName: String, $type: MediaType, $status: MediaListStatus, $mediaId: Int, $isFollowing: Boolean, $notes: String, $startedAt: FuzzyDateInt, $completedAt: FuzzyDateInt, $compareWithAuthList: Boolean, $userId_in: [Int], $status_in: [MediaListStatus], $status_not_in: [MediaListStatus], $status_not: MediaListStatus, $mediaId_in: [Int], $mediaId_not_in: [Int], $notes_like: String, $startedAt_greater: FuzzyDateInt, $startedAt_lesser: FuzzyDateInt, $startedAt_like: String, $completedAt_greater: FuzzyDateInt, $completedAt_lesser: FuzzyDateInt, $completedAt_like: String, $ScoreFormat: ScoreFormat, $asArray: Boolean, $asHtml: Boolean) {
|
|
40
82
|
Page (page: $page, perPage: $perPage) {
|
|
@@ -13,6 +13,8 @@ exports.MediaTrendsQuery = void 0;
|
|
|
13
13
|
const APIWrapper_1 = require("../../../../base/APIWrapper");
|
|
14
14
|
const RequestHandler_1 = require("../../../../base/RequestHandler");
|
|
15
15
|
const MediaTrend_1 = require("../../interfaces/responses/query/MediaTrend");
|
|
16
|
+
const Sort_1 = require("../../types/Sort");
|
|
17
|
+
const ValidateVariables_1 = require("../../../../base/ValidateVariables");
|
|
16
18
|
/**
|
|
17
19
|
* `MediaTrendsQuery` is a class representing a query for media trends.
|
|
18
20
|
* It includes a method to get media trends.
|
|
@@ -35,6 +37,40 @@ class MediaTrendsQuery extends APIWrapper_1.APIWrapper {
|
|
|
35
37
|
*/
|
|
36
38
|
mediaTrends(variables) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!variables) {
|
|
41
|
+
throw new Error('At least one variable must be set');
|
|
42
|
+
}
|
|
43
|
+
const variableTypeMappings = {
|
|
44
|
+
page: 'number',
|
|
45
|
+
perPage: 'number',
|
|
46
|
+
mediaId: 'number',
|
|
47
|
+
date: 'number',
|
|
48
|
+
trending: 'number',
|
|
49
|
+
averageScore: 'number',
|
|
50
|
+
popularity: 'number',
|
|
51
|
+
episode: 'number',
|
|
52
|
+
releasing: 'boolean',
|
|
53
|
+
mediaId_not: 'number',
|
|
54
|
+
mediaId_in: 'number[]',
|
|
55
|
+
mediaId_not_in: 'number[]',
|
|
56
|
+
date_greater: 'number',
|
|
57
|
+
date_lesser: 'number',
|
|
58
|
+
trending_greater: 'number',
|
|
59
|
+
trending_lesser: 'number',
|
|
60
|
+
trending_not: 'number',
|
|
61
|
+
averageScore_greater: 'number',
|
|
62
|
+
averageScore_lesser: 'number',
|
|
63
|
+
averageScore_not: 'number',
|
|
64
|
+
popularity_greater: 'number',
|
|
65
|
+
popularity_lesser: 'number',
|
|
66
|
+
popularity_not: 'number',
|
|
67
|
+
episode_greater: 'number',
|
|
68
|
+
episode_lesser: 'number',
|
|
69
|
+
episode_not: 'number',
|
|
70
|
+
sort: Sort_1.MediaTrendSortMappings,
|
|
71
|
+
asHtml: 'boolean'
|
|
72
|
+
};
|
|
73
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
38
74
|
const query = `
|
|
39
75
|
query ($page: Int, $perPage: Int, $mediaId: Int, $date: Int, $trending: Int, $averageScore: Int, $popularity: Int, $episode: Int, $releasing: Boolean, $mediaId_not: Int, $mediaId_in: [Int], $mediaId_not_in: [Int], $date_greater: Int, $date_lesser: Int, $trending_greater: Int, $trending_lesser: Int, $trending_not: Int, $averageScore_greater: Int, $averageScore_lesser: Int, $averageScore_not: Int, $popularity_greater: Int, $popularity_lesser: Int, $popularity_not: Int, $episode_greater: Int, $episode_lesser: Int, $episode_not: Int, $sort: [MediaTrendSort], $asHtml: Boolean) {
|
|
40
76
|
Page (page: $page, perPage: $perPage) {
|