Files
suwayomi-material-you-webui/src/lib/graphql/koreader/KoreaderSyncMutation.ts

36 lines
974 B
TypeScript
Raw Normal View History

/*
* 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';
2025-12-22 14:00:44 +01:00
import { KO_SYNC_STATUS } from '@/lib/graphql/koreader/KoreaderSyncFragments.ts';
export const KO_SYNC_LOGIN = gql`
${KO_SYNC_STATUS}
mutation KO_SYNC_LOGIN($serverAddress: String!, $username: String!, $password: String!) {
connectKoSyncAccount(input: { serverAddress: $serverAddress, username: $username, password: $password }) {
message
status {
...KO_SYNC_STATUS
}
}
}
`;
export const KO_SYNC_LOGOUT = gql`
${KO_SYNC_STATUS}
mutation KO_SYNC_LOGOUT {
logoutKoSyncAccount(input: {}) {
status {
...KO_SYNC_STATUS
}
}
}
`;