Browse Source

Merge remote-tracking branch 'origin/develop'

master
Timothy Warren 1 month ago
parent
commit
7b2b711133
  1. 2
      src/AnimeClient/API/Kitsu/Mutations/CreateFullLibraryItem.graphql
  2. 2
      src/AnimeClient/API/Kitsu/Mutations/CreateLibraryItem.graphql
  3. 7
      src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql
  4. 2
      src/AnimeClient/Command/SyncLists.php

2
src/AnimeClient/API/Kitsu/Mutations/CreateFullLibraryItem.graphql

@ -2,7 +2,6 @@
# Flesh out a library item with data - most commonly used for syncing lists
# between APIs
mutation (
$userId: ID!
$id: ID!,
$mediaType: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
@ -15,7 +14,6 @@ mutation (
) {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $mediaType
status: $status

2
src/AnimeClient/API/Kitsu/Mutations/CreateLibraryItem.graphql

@ -2,14 +2,12 @@
# This is the more common use case, when adding an anime or manga to
# the user's library.
mutation (
$userId: ID!
$id: ID!,
$type: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
) {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $type
status: $status

7
src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql

@ -17,6 +17,13 @@ query ($type: MediaTypeEnum!) {
width
}
}
myLibraryEntry {
progress
status
private
notes
rating
}
categories(first: 100) {
nodes {
title

2
src/AnimeClient/Command/SyncLists.php

@ -75,7 +75,7 @@ final class SyncLists extends BaseCommand {
{
$this->init();
foreach ([MediaType::ANIME, MediaType::MANGA] as $type)
foreach ([MediaType::MANGA, MediaType::ANIME] as $type)
{
// Main Sync flow
$this->fetchCount($type);

Loading…
Cancel
Save