/* * 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'; 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 } } } `;