2023-08-05 01:03:40 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import gql from 'graphql-tag';
|
2023-11-24 03:17:49 +01:00
|
|
|
import { BASE_MANGA_FIELDS } from '@/lib/graphql/Fragments';
|
2023-08-05 01:03:40 +02:00
|
|
|
|
|
|
|
|
export const GET_SOURCE_MANGAS_FETCH = gql`
|
2023-09-08 00:06:24 +02:00
|
|
|
${BASE_MANGA_FIELDS}
|
2023-08-05 01:03:40 +02:00
|
|
|
mutation GET_SOURCE_MANGAS_FETCH($input: FetchSourceMangaInput!) {
|
|
|
|
|
fetchSourceManga(input: $input) {
|
|
|
|
|
clientMutationId
|
|
|
|
|
hasNextPage
|
|
|
|
|
mangas {
|
2023-09-08 00:06:24 +02:00
|
|
|
...BASE_MANGA_FIELDS
|
2023-08-05 01:03:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const UPDATE_SOURCE_PREFERENCES = gql`
|
|
|
|
|
mutation UPDATE_SOURCE_PREFERENCES($input: UpdateSourcePreferenceInput!) {
|
|
|
|
|
updateSourcePreference(input: $input) {
|
|
|
|
|
clientMutationId
|
|
|
|
|
source {
|
2023-11-24 03:17:49 +01:00
|
|
|
id
|
|
|
|
|
preferences {
|
|
|
|
|
... on CheckBoxPreference {
|
|
|
|
|
type: __typename
|
|
|
|
|
CheckBoxCheckBoxCurrentValue: currentValue
|
|
|
|
|
summary
|
|
|
|
|
CheckBoxDefault: default
|
|
|
|
|
key
|
|
|
|
|
CheckBoxTitle: title
|
|
|
|
|
}
|
|
|
|
|
... on EditTextPreference {
|
|
|
|
|
type: __typename
|
|
|
|
|
EditTextPreferenceCurrentValue: currentValue
|
|
|
|
|
EditTextPreferenceDefault: default
|
|
|
|
|
EditTextPreferenceTitle: title
|
|
|
|
|
text
|
|
|
|
|
summary
|
|
|
|
|
key
|
|
|
|
|
dialogTitle
|
|
|
|
|
dialogMessage
|
|
|
|
|
}
|
|
|
|
|
... on SwitchPreference {
|
|
|
|
|
type: __typename
|
|
|
|
|
SwitchPreferenceCurrentValue: currentValue
|
|
|
|
|
summary
|
|
|
|
|
key
|
|
|
|
|
SwitchPreferenceDefault: default
|
|
|
|
|
SwitchPreferenceTitle: title
|
|
|
|
|
}
|
|
|
|
|
... on MultiSelectListPreference {
|
|
|
|
|
type: __typename
|
|
|
|
|
dialogMessage
|
|
|
|
|
dialogTitle
|
|
|
|
|
MultiSelectListPreferenceTitle: title
|
|
|
|
|
summary
|
|
|
|
|
key
|
|
|
|
|
entryValues
|
|
|
|
|
entries
|
|
|
|
|
MultiSelectListPreferenceDefault: default
|
|
|
|
|
MultiSelectListPreferenceCurrentValue: currentValue
|
|
|
|
|
}
|
|
|
|
|
... on ListPreference {
|
|
|
|
|
type: __typename
|
|
|
|
|
ListPreferenceCurrentValue: currentValue
|
|
|
|
|
ListPreferenceDefault: default
|
|
|
|
|
ListPreferenceTitle: title
|
|
|
|
|
summary
|
|
|
|
|
key
|
|
|
|
|
entryValues
|
|
|
|
|
entries
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-05 01:03:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|