anilink-api-wrapper 1.20.0 → 1.22.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 +6 -227
- package/dist/AniLink.js +25 -3
- package/dist/apis/anilist/interfaces/Activity.js +67 -1
- package/dist/apis/anilist/mutation/DeleteActivity.js +61 -0
- package/dist/apis/anilist/mutation/DeleteCustomList.js +4 -1
- package/dist/apis/anilist/mutation/DeleteMediaListEntry.js +3 -0
- package/dist/apis/anilist/mutation/SaveListActivity.js +64 -0
- package/dist/apis/anilist/mutation/SaveMediaListEntry.js +3 -0
- package/dist/apis/anilist/mutation/SaveMessageActivity.js +68 -0
- package/dist/apis/anilist/mutation/SaveTextActivity.js +3 -0
- package/dist/apis/anilist/mutation/ToggleActivityPin.js +64 -0
- package/dist/apis/anilist/mutation/ToggleActivitySubscription.js +64 -0
- package/dist/apis/anilist/mutation/UpdateMediaListEntries.js +3 -0
- package/dist/apis/anilist/mutation/UpdateUser.js +3 -0
- package/dist/apis/anilist/query/AniChartUser.js +3 -3
- package/dist/apis/anilist/query/Notification.js +3 -0
- package/dist/apis/anilist/query/Viewer.js +3 -0
- package/package.json +10 -4
- package/dist/apis/anilist/interfaces/Stats.js +0 -2
- package/dist/apis/anilist/interfaces/responses/AiringSchedule.js +0 -14
- package/dist/apis/anilist/interfaces/responses/AniChartUser.js +0 -2
- package/dist/apis/anilist/interfaces/responses/Character.js +0 -30
- package/dist/apis/anilist/interfaces/responses/ExternalLinkSourceCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/Media.js +0 -210
- package/dist/apis/anilist/interfaces/responses/MediaList.js +0 -32
- package/dist/apis/anilist/interfaces/responses/MediaListCollectionResponse.js +0 -41
- package/dist/apis/anilist/interfaces/responses/MediaTag.js +0 -2
- package/dist/apis/anilist/interfaces/responses/MediaTagCollection.js +0 -2
- package/dist/apis/anilist/interfaces/responses/MediaTrend.js +0 -17
- package/dist/apis/anilist/interfaces/responses/Notification.js +0 -164
- package/dist/apis/anilist/interfaces/responses/Recommendation.js +0 -19
- package/dist/apis/anilist/interfaces/responses/Review.js +0 -26
- package/dist/apis/anilist/interfaces/responses/SiteStatistics.js +0 -27
- package/dist/apis/anilist/interfaces/responses/Staff.js +0 -55
- package/dist/apis/anilist/interfaces/responses/Studio.js +0 -56
- package/dist/apis/anilist/interfaces/responses/Thread.js +0 -40
- package/dist/apis/anilist/interfaces/responses/ThreadComment.js +0 -27
- package/dist/apis/anilist/interfaces/responses/User.js +0 -362
- package/dist/apis/anilist/query/Like.js +0 -69
- package/dist/apis/anilist/types/MediaListStatus.js +0 -15
- package/dist/apis/anilist/types/ScoreFormat.js +0 -14
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ToggleActivityPinMutation = void 0;
|
|
13
|
+
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
|
+
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
|
+
const Activity_1 = require("../interfaces/Activity");
|
|
17
|
+
/**
|
|
18
|
+
* `ToggleActivityPinMutation` is a class representing a mutation to pin an activity.
|
|
19
|
+
* It includes a method to pin an activity
|
|
20
|
+
*/
|
|
21
|
+
class ToggleActivityPinMutation extends APIWrapper_1.APIWrapper {
|
|
22
|
+
/**
|
|
23
|
+
* Constructs a new `ToggleActivityPinMutation` instance.
|
|
24
|
+
*
|
|
25
|
+
* @param authToken - The authentication token.
|
|
26
|
+
*/
|
|
27
|
+
constructor(authToken) {
|
|
28
|
+
super('https://graphql.anilist.co');
|
|
29
|
+
this.authToken = authToken;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* `toggleActivityPin` is a method that sends a mutation request to pin an activity.
|
|
33
|
+
*
|
|
34
|
+
* @param variables - An object of type `ToggleActivityPinVariables` representing the variables for the mutation.
|
|
35
|
+
* @returns A Promise that resolves to the response from the mutation request.
|
|
36
|
+
* @throws Will throw an error if the mutation request fails or if the provided variables do not pass the validation checks.
|
|
37
|
+
* */
|
|
38
|
+
toggleActivityPin(variables) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!this.authToken) {
|
|
41
|
+
throw new Error('ToggleActivityPinMutation requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
42
|
+
}
|
|
43
|
+
if (!variables.id || !variables.pinned) {
|
|
44
|
+
throw new Error('id & pinned variables are required');
|
|
45
|
+
}
|
|
46
|
+
const variableTypeMappings = {
|
|
47
|
+
id: 'number',
|
|
48
|
+
pinned: 'boolean',
|
|
49
|
+
asHtml: 'boolean'
|
|
50
|
+
};
|
|
51
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
52
|
+
const mutation = `
|
|
53
|
+
mutation ($id: Int, $pinned: Boolean, $asHtml: Boolean) {
|
|
54
|
+
ToggleActivityPin(id: $id, pinned: $pinned) {
|
|
55
|
+
${Activity_1.ActivityWithRepliesSchema}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const data = { query: mutation, variables };
|
|
60
|
+
return yield (0, RequestHandler_1.sendRequest)(this.baseURL, 'POST', data, this.authToken);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ToggleActivityPinMutation = ToggleActivityPinMutation;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ToggleActivitySubscriptionMutation = void 0;
|
|
13
|
+
const APIWrapper_1 = require("../../../base/APIWrapper");
|
|
14
|
+
const RequestHandler_1 = require("../../../base/RequestHandler");
|
|
15
|
+
const ValidateVariables_1 = require("../../../base/ValidateVariables");
|
|
16
|
+
const Activity_1 = require("../interfaces/Activity");
|
|
17
|
+
/**
|
|
18
|
+
* `ToggleActivitySubscriptionMutation` is a class representing a mutation to subscribe to an activity.
|
|
19
|
+
* It includes a method to subscribe to an activity
|
|
20
|
+
*/
|
|
21
|
+
class ToggleActivitySubscriptionMutation extends APIWrapper_1.APIWrapper {
|
|
22
|
+
/**
|
|
23
|
+
* Constructs a new `ToggleActivitySubscriptionMutation` instance.
|
|
24
|
+
*
|
|
25
|
+
* @param authToken - The authentication token.
|
|
26
|
+
*/
|
|
27
|
+
constructor(authToken) {
|
|
28
|
+
super('https://graphql.anilist.co');
|
|
29
|
+
this.authToken = authToken;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* `toggleActivitySubscription` is a method that sends a mutation request to subscribe to an activity.
|
|
33
|
+
*
|
|
34
|
+
* @param variables - An object of type `ToggleActivitySubscriptionVariables` representing the variables for the mutation.
|
|
35
|
+
* @returns A Promise that resolves to the response from the mutation request.
|
|
36
|
+
* @throws Will throw an error if the mutation request fails or if the provided variables do not pass the validation checks.
|
|
37
|
+
* */
|
|
38
|
+
toggleActivitySubscription(variables) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!this.authToken) {
|
|
41
|
+
throw new Error('ToggleActivitySubscriptionMutation requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
42
|
+
}
|
|
43
|
+
if (!variables.activityId || !variables.subscribe) {
|
|
44
|
+
throw new Error('activityId & subscribe variables are required');
|
|
45
|
+
}
|
|
46
|
+
const variableTypeMappings = {
|
|
47
|
+
activityId: 'number',
|
|
48
|
+
subscribe: 'boolean',
|
|
49
|
+
asHtml: 'boolean'
|
|
50
|
+
};
|
|
51
|
+
(0, ValidateVariables_1.validateVariables)(variables, variableTypeMappings);
|
|
52
|
+
const mutation = `
|
|
53
|
+
mutation ($activityId: Int, $subscribe: Boolean, $asHtml: Boolean) {
|
|
54
|
+
ToggleActivitySubscription(activityId: $activityId, subscribe: $subscribe) {
|
|
55
|
+
${Activity_1.ActivityWithRepliesSchema}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const data = { query: mutation, variables };
|
|
60
|
+
return yield (0, RequestHandler_1.sendRequest)(this.baseURL, 'POST', data, this.authToken);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ToggleActivitySubscriptionMutation = ToggleActivitySubscriptionMutation;
|
|
@@ -39,6 +39,9 @@ class UpdateMediaListEntriesMutation extends APIWrapper_1.APIWrapper {
|
|
|
39
39
|
* */
|
|
40
40
|
updateMediaListEntries(variables) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
if (!this.authToken) {
|
|
43
|
+
throw new Error('UpdateMediaListEntriesMutation requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
44
|
+
}
|
|
42
45
|
if (!variables.ids || variables.ids.length === 0) {
|
|
43
46
|
throw new Error('ids must be an array of at least one number');
|
|
44
47
|
}
|
|
@@ -42,6 +42,9 @@ class UpdateUserMutation extends APIWrapper_1.APIWrapper {
|
|
|
42
42
|
*/
|
|
43
43
|
updateUser(variables) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
if (!this.authToken) {
|
|
46
|
+
throw new Error('UpdateUserMutation requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
47
|
+
}
|
|
45
48
|
const variableTypeMappings = {
|
|
46
49
|
about: 'string',
|
|
47
50
|
titleLanguage: UserTitleLanguage_1.UserTitleLanguageMapping,
|
|
@@ -26,9 +26,6 @@ class AniChartUserQuery extends APIWrapper_1.APIWrapper {
|
|
|
26
26
|
constructor(authToken) {
|
|
27
27
|
super('https://graphql.anilist.co');
|
|
28
28
|
this.authToken = authToken;
|
|
29
|
-
if (!this.authToken) {
|
|
30
|
-
throw new Error('AniChartUserQuery requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
31
|
-
}
|
|
32
29
|
}
|
|
33
30
|
/**
|
|
34
31
|
* `aniChartUser` is a method that sends a query request to get AniChart users.
|
|
@@ -37,6 +34,9 @@ class AniChartUserQuery extends APIWrapper_1.APIWrapper {
|
|
|
37
34
|
*/
|
|
38
35
|
aniChartUser() {
|
|
39
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (!this.authToken) {
|
|
38
|
+
throw new Error('AniChartUserQuery requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
39
|
+
}
|
|
40
40
|
const query = `
|
|
41
41
|
query {
|
|
42
42
|
AniChartUser {
|
|
@@ -37,6 +37,9 @@ class NotificationQuery extends APIWrapper_1.APIWrapper {
|
|
|
37
37
|
*/
|
|
38
38
|
notification(variables) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (!this.authToken) {
|
|
41
|
+
throw new Error('NotificationQuery requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
42
|
+
}
|
|
40
43
|
if (!variables) {
|
|
41
44
|
throw new Error('At least one variable must be set');
|
|
42
45
|
}
|
|
@@ -37,6 +37,9 @@ class ViewerQuery extends APIWrapper_1.APIWrapper {
|
|
|
37
37
|
*/
|
|
38
38
|
viewer() {
|
|
39
39
|
return __awaiter(this, arguments, void 0, function* (variables = {}) {
|
|
40
|
+
if (!this.authToken) {
|
|
41
|
+
throw new Error('ViewerQuery requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
|
|
42
|
+
}
|
|
40
43
|
const variableTypeMappings = {
|
|
41
44
|
asHtml: 'boolean',
|
|
42
45
|
animeStatLimit: 'number',
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anilink-api-wrapper",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Anilist
|
|
3
|
+
"version": "1.22.0",
|
|
4
|
+
"description": "API wrapper for AniManga sites such as Anilist, MyAnimeList, Kitsu.",
|
|
5
5
|
"main": "dist/AniLink.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "jest",
|
|
8
8
|
"build": "tsc",
|
|
9
|
-
"generate-docs": "typedoc --entryPoints ./src --entryPointStrategy expand --out docs --plugin typedoc-theme-hierarchy --theme hierarchy",
|
|
9
|
+
"generate-docs": "typedoc --entryPoints ./src --entryPointStrategy expand --out docs --plugin typedoc-theme-hierarchy --theme hierarchy && node add-ga.js",
|
|
10
10
|
"prepublishOnly": "npm run build"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"anilist",
|
|
14
|
+
"myanimelist",
|
|
15
|
+
"kitsu",
|
|
14
16
|
"api",
|
|
15
|
-
"wrapper"
|
|
17
|
+
"wrapper",
|
|
18
|
+
"anilist-api",
|
|
19
|
+
"anilist-query",
|
|
20
|
+
"anilist-mutation",
|
|
21
|
+
"anilist-graphql"
|
|
16
22
|
],
|
|
17
23
|
"author": "RLAlpha49",
|
|
18
24
|
"license": "MIT",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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,210 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
`;
|